mnemonic

An implementation of Electrum's mnemonic in JavaScript

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
mnemonic
1.0.18 years ago8 years agoMinified + gzip package size for mnemonic in KB

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