cryptocoinjs / hdkey

JavaScript component for Bitcoin hierarchical deterministic keys (BIP32)
MIT License
201 stars 74 forks source link

docs(README): add BIP44 & WIF examples #48

Closed coolaj86 closed 2 years ago

coolaj86 commented 2 years ago

Removed this info, which is still valuable info:

To convert to Base58Check and WIF addresses:

var Base58check = require('base58check');

var addr = Base58Check.encode(childkey.pubKeyHash, prefix = '00');

var compressed = '01';
var wif = Base58Check.encode(
  childkey.privateKey.toString('hex') + compressed,
  prefix = '80',
);
coolaj86 commented 2 years ago

Good catch. Fixed and removed.