bip39#entropyToMnemonic TypeScript Examples

The following examples show how to use bip39#entropyToMnemonic. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: bip39Util.ts    From sdk with Apache License 2.0 5 votes vote down vote up
seedToMnemonic = (seed: any) => {
  return entropyToMnemonic(seed);
}
Example #2
Source File: bip39Util.ts    From sdk with Apache License 2.0 5 votes vote down vote up
mnemonicGenerate = (words = 12) => {
  const strength = STRENGTH_MAP[words];
  const entropy = crypto.randomBytes(strength / 8);
  return entropyToMnemonic(entropy);
}