Browse Source

tests: cleanup

hk-custom-address
Daniel Cousens 9 years ago
committed by GitHub
parent
commit
817e10513c
  1. 4
      test/integration/crypto.js

4
test/integration/crypto.js

@ -32,9 +32,7 @@ describe('bitcoinjs-lib (crypto)', function () {
function stealthReceive (d, P) {
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))
return derived
return new bitcoin.ECPair(d.add(c).mod(n))
}
// receiver private key

Loading…
Cancel
Save