8000 GitHub - weilu/mnemonic: Implementation of https://raw.github.com/spesmilo/electrum/master/lib/mnemonic.py in JavaScript · GitHub
[go: up one dir, main page]

Skip to content
weiluPublic

About

Implementation of https://raw.github.com/spesmilo/electrum/master/lib/mnemonic.py in JavaScript

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Implementation of https://raw.github.com/spesmilo/electrum/master/lib/mnemonic.py in JavaScript

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0