You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
JP Richardson b25cd0b416 0.7.1 9 years ago
lib (Closes #7) fix when privateKeyExtended when privateKey is null 9 years ago
test (Closes #7) fix when privateKeyExtended when privateKey is null 9 years ago
.gitignore add .npmignore 11 years ago
.min-wd added make browser-test 11 years ago
.npmignore hdkey: clean up package, add iojs to travis 10 years ago
.travis.yml travis: update 9 years ago
CHANGELOG.md 0.7.1 9 years ago
README.md readme: remove deprecation notice, add badges 9 years ago
package.json 0.7.1 9 years ago

README.md

hdkey

NPM Package build status js-standard-style

A JavaScript component for BIP32(hierarchical deterministic keys).

Installation

npm i --save hdkey

Usage

example:

var HDKey = require('hdkey')
var seed = 'a0c42a9c3ac6abf2ba6a9946ae83af18f51bf1c9fa7dacc4c92513cc4dd015834341c775dcd4c0fac73547c5662d81a9e9361a0aac604a73a321bd9103bce8af'
var hdkey = HDKey.fromMasterSeed(new Buffer(seed, 'hex'))
console.log(mk.privateExtendedKey)
// => 'xprv9s21ZrQH143K2SKJK9EYRW3Vsg8tWVHRS54hAJasj1eGsQXeWDHLeuu5hpLHRbeKedDJM4Wj9wHHMmuhPF8dQ3bzyup6R7qmMQ1i1FtzNEW'
console.log(mk.publicExtendedKey)
// => 'xpub661MyMwAqRbcEvPmRAmYndzERhyNux1GoHzHxgzVHMBFkCro3kbbCiDZZ5XabZDyXPj5mH3hktvkjhhUdCQxie5e1g4t2GuAWNbPmsSfDp2'

References

License

MIT