From 00dad84880c0a174d3c867ff36570c76c17fc7c4 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Wed, 19 Aug 2015 15:00:06 +1000 Subject: [PATCH] integration: annotate the shared secret --- test/integration/crypto.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/crypto.js b/test/integration/crypto.js index f914940..b5420b4 100644 --- a/test/integration/crypto.js +++ b/test/integration/crypto.js @@ -15,7 +15,7 @@ describe('bitcoinjs-lib (crypto)', function () { function stealthSend (Q) { var noncePair = bitcoin.ECPair.makeRandom() var e = noncePair.d - var eQ = Q.multiply(e) + var eQ = Q.multiply(e) // shared secret var c = bigi.fromBuffer(bitcoin.crypto.sha256(eQ.getEncoded())) var cG = G.multiply(c) var Qprime = Q.add(cG) @@ -27,7 +27,7 @@ describe('bitcoinjs-lib (crypto)', function () { } function stealthReceive (d, P) { - var dP = P.multiply(d) + var dP = P.multiply(d) // shared secret var c = bigi.fromBuffer(bitcoin.crypto.sha256(dP.getEncoded())) var derived = new bitcoin.ECPair(d.add(c).mod(n))