BipMnemonic is a ruby gem to generate BIP-39 compliant Mnemonic Words from specific entropy or random entropy of `n` bits and also to generate the BIP-32 seed from the BIP-39 Mnemonic.
Switch branches/tags
Nothing to show
Clone or download
sreekanthgs Merge pull request #4 from kp666/master
use openssl for pbkdf2_hmac
Latest commit 5c74f86 Aug 13, 2018
Permalink
Failed to load latest commit information.
lib update version Aug 12, 2018
spec Remove pbkdf2 dependency, improve code style, add MIT license to gemspec Jun 6, 2018
words
.gitignore Initial Commit Aug 10, 2016
.rspec Initial Commit Aug 10, 2016
.travis.yml Build versions of ruby changed in Travis config Aug 10, 2016
Gemfile Adding codecov coverage Aug 11, 2016
Gemfile.lock update version Aug 12, 2018
Guardfile Initial Commit Aug 10, 2016
LICENSE Initial Commit Aug 10, 2016
README.md Remove pbkdf2 dependency, improve code style, add MIT license to gemspec Jun 6, 2018
Rakefile Remove pbkdf2 dependency, improve code style, add MIT license to gemspec Jun 6, 2018
bip_mnemonic.gemspec Remove pbkdf2 dependency, improve code style, add MIT license to gemspec Jun 6, 2018

README.md

Build Status Gem Version codecov

README

BipMnemonic is a ruby gem to generate BIP-39 compliant Mnemonic Words from specific entropy or random entropy of n bits and also to generate the BIP-32 seed from the BIP-39 Mnemonic.

Usage

Specified Entropy in Hex

BipMnemonic.to_mnemonic(entropy: 'c10ec20dc3cd9f652c7fac2f1230f7a3c828389a14392f05')

Entropy of n bits

BipMnemonic.to_mnemonic(bits: 128)

Retrieving entropy from Mnemonic

BipMnemonic.to_entropy(mnemonic: 'scissors invite lock maple supreme raw rapid void congress muscle digital elegant little brisk hair mango congress clump')

Seed from Mnemonic Words

words = BipMnemonic.to_mnemonic(entropy: 'c10ec20dc3cd9f652c7fac2f1230f7a3c828389a14392f05')
BipMnemonic.to_seed(mnemonic: words)

Credits

  • OpenSSL