foundry-primitives
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

foundry-primitives-js

JavaScript functions and classes for Foundry primitives

Installing a package

# npm
npm install foundry-primitives
# yarn
yarn add foundry-primitives

Getting started

// Using require
var primitives = require("foundry-primitives");
var H256 = primitives.H256;
var blake256 = primitives.blake256;

// Using import
import { blake256, H256 } from "foundry-primitives";

Functions

  • blake256
  • blake256WithKey
  • ripemd160
  • signEd25519
  • verifyEd25519
  • generatePrivateKey
  • getPublicFromPrivate
  • toHex
  • toArray
  • getAccountIdFromPrivate
  • getAccountIdFromPublic

Classes

  • H128, H160, H256, H512
  • U64, U128, U256
  • Address

API Documentation

https://codechain-io.github.io/foundry-primitives-js

Readme

Keywords

Package Sidebar

Install

npm i foundry-primitives

Weekly Downloads

195

Version

0.2.1

License

ISC

Unpacked Size

102 kB

Total Files

50

Last publish

Collaborators

  • jmyang_kodebox
  • hoongee
  • jh_kodebox
  • cubismic
  • jjg_kodebox
  • rbtree_kodebox
  • suengmin-codechain