We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5846b35 commit e5e2425Copy full SHA for e5e2425
test/integration/crypto.js
@@ -65,14 +65,14 @@ describe('bitcoinjs-lib (crypto)', function () {
65
66
var d1 = child.keyPair.d
67
var d2
68
- var indexBuffer = new Buffer(4)
+ var data = new Buffer(37)
69
+ serQP.copy(data, 0)
70
71
// search index space until we find it
72
for (var i = 0; i < bitcoin.HDNode.HIGHEST_BIT; ++i) {
- indexBuffer.writeUInt32BE(i, 0)
73
+ data.writeUInt32BE(i, 33)
74
75
// calculate I
- var data = Buffer.concat([serQP, indexBuffer])
76
var I = crypto.createHmac('sha512', master.chainCode).update(data).digest()
77
var IL = I.slice(0, 32)
78
var pIL = bigi.fromBuffer(IL)
0 commit comments