From ebe849525cbb722b7ca438ab633e375dd06994ba Mon Sep 17 00:00:00 2001 From: Wei Lu Date: Mon, 10 Mar 2014 11:13:29 +0800 Subject: [PATCH] Add example usage --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index b13c762..f5457e4 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,17 @@ bip39 JavaScript implementation of [Bitcoin BIP39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki): Mnemonic code for generating deterministic keys +## Usage + +`npm install bip39` + +```javascript +bip39 = require('bip39') +bip39.mnemonicToSeed('crazy horse battery staple') +// wait for it... +// 'd6b0f05e5e039b4b4adb72e84f3d5df121cc2dba8b236a1b3a5a8d487b9641096717364fc96e24ddbc648e0e6badbff72332e7d44dc2a42796c2d7e58ee632de' +``` + ## TODO - seedToMnemonic