adhere to standard 5.0.0
This commit is contained in:
parent
e97389ed08
commit
56160622ca
3 changed files with 13 additions and 24 deletions
src
|
@ -74,7 +74,7 @@ HDNode.fromBase58 = function (string, networks) {
|
|||
}
|
||||
|
||||
if (version !== network.bip32.private &&
|
||||
version !== network.bip32.public) throw new Error('Invalid network')
|
||||
version !== network.bip32.public) throw new Error('Invalid network')
|
||||
|
||||
// 1 byte: depth: 0x00 for master nodes, 0x01 for level-1 descendants, ...
|
||||
var depth = buffer.readUInt8(4)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue