You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varhdPrivateKey=newHDPrivateKey();varhdPublicKey=privateKey.hdPublicKey;try{newHDPublicKey();}catch(e){console.log("Can't generate a public key without a private key");}varaddress=newAddress(hdPublicKey.publicKey,Networks.livenet);varderivedAddress=newAddress(hdPublicKey.derive(100).publicKey,Networks.testnet);
The second line should read
varhdPublicKey=hdPrivateKey.hdPublicKey;
The text was updated successfully, but these errors were encountered:
https://github.com/thofmann/bitcore/blob/master/docs/hierarchical.md#hdpublickey
The second line should read
The text was updated successfully, but these errors were encountered: