From 817e10513c67902e64d0352e9be184e747495348 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Fri, 22 Jul 2016 13:31:34 +1000 Subject: [PATCH] tests: cleanup --- test/integration/crypto.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/integration/crypto.js b/test/integration/crypto.js index 6eff730..897e962 100644 --- a/test/integration/crypto.js +++ b/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