mnemonic
v1.0.1
Published
An implementation of Electrum's mnemonic in JavaScript
Downloads
183
Readme
mnemonic
Implementation of Electrum's mnemonic in JavaScript
Usage
npm install mnemonic
var mnemonic = require('mnemonic')
var wlist = [
"spiral", "squeeze", "strain", "sunset", "suspend", "sympathy",
"thigh", "throne", "total", "unseen", "weapon", "weary"
]
mnemonic.decode(wlist) // => '0028644c0028644f0028645200286455'
mnemonic.encode('0028644c0028644f0028645200286455') // => wlist
Credits
- Wordlist and implementation are ported from Electrum
- Some of the test cases are stolen from mnemonic.js