JavaScript functions and classes for CodeChain primitives
# npm
npm install codechain-primitives
# yarn
yarn add codechain-primitives
// Using require
var primitives = require("codechain-primitives");
var H256 = primitives.H256;
var blake256 = primitives.blake256;
// Using import
import { blake256, H256 } from "codechain-primitives";
- blake256
- blake256WithKey
- ripemd160
- signEcdsa
- verifyEcdsa
- recoverEcdsa
- generatePrivateKey
- getPublicFromPrivate
- toHex
- getAccountIdFromPrivate
- getAccountIdFromPublic
- H128, H160, H256, H512
- U64, U128, U256
- AssetAddres
- PlatformAddress