fix in pubkey deserialization code.

This commit is contained in:
Pablo Martin 2013-12-12 17:19:31 +01:00
parent 740a0fcb7d
commit 26e5914be2

View file

@ -48,7 +48,7 @@ BIP32key.prototype.deserialize = function(str) {
fingerprint: bytes.slice(5,9),
i: util.bytesToNum(bytes.slice(9,13).reverse()),
chaincode: bytes.slice(13,45),
key: new key(type == 'priv' ? bytes.slice(46,78).concat([1]) : bytes.slice(45,78))
key: type == 'priv' ? new key(bytes.slice(46,78).concat([1])) : bytes.slice(45,78)
})
}