@leofcoin/mnemonic
v1.0.32
Published
bip39 mnemonic
Downloads
17
Readme
@leofcoin/mnemonic
bip39 mnemonic
install
npm i -S @leofcoin/mnemonic
usage
english (derfault wordlist)
import Mnemonic from '@leofcoin/mnemonic'
const mnemonic = new Mnemonic()
mnemonic.generate()
custom wordlist
import Mnemonic from '@leofcoin/mnemonic'
import words from './words.js'
const mnemonic = new Mnemonic(words)
mnemonic.generate()
wallet seed
import Mnemonic from '@leofcoin/mnemonic'
const mnemonic = new Mnemonic()
const phrase = mnemonic.generate()
mnemonic.seedFromMnemonic(phrase)