@polkadot/wasm-crypto
Wrapper around crypto hashing functions
Usage
Install the package (also requires @polkadot/util
for TextEncoder
polyfills - not included here as a dependency to keep the tree lean)
yarn add @polkadot/wasm-crypto @polkadot/util
Use it -
const u8aToHex = ;const bio39Generate bip39ToSeed waitReady = ; { // first wait until the WASM has been loaded (async init) await ; // generate phrase const phrase = ; // get ed25519 seed from phrase const seed = ; // display console; console;}