1.0.1 • Published 10 years ago

mnemonic v1.0.1

Weekly downloads
199
License
GPLv3+
Repository
-
Last release
10 years ago

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