rif-id-mnemonic
RIF Identity - Mnemonic
npm i @rsksmart/rif-id-mnemonic
Features
- BIP-39 complaint random mnemonic key generation given sentence size
- BIP-39 mnemonic to BIP-32 seed
- BIP-32 seed to BIP-44 compliant RSK multi-account base HD Key
Usage
Generate a mnemonic:
const mnemonic =
Get a private key:
const seed = await const hdKey = const privateKey = hdKeyprivateKey?
Or sync:
const seed = const hdKey = const privateKey = hdKeyprivateKey?
Test
From base repo directory run npm test
or any of the described test script variants.