mnemonic

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i mnemonic

Weekly Downloads

2,650

Version

1.0.1

License

GPLv3+

Last publish

Collaborators

  • weilu