From 94f0ae85e3fd9323cc6cdbfb719a161f00d238b4 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Mon, 23 Jul 2018 16:54:10 +1000 Subject: [PATCH] tests/integration: fix ecurve import, as removed --- test/integration/crypto.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/integration/crypto.js b/test/integration/crypto.js index 611b306..864f4e7 100644 --- a/test/integration/crypto.js +++ b/test/integration/crypto.js @@ -7,9 +7,6 @@ const bip32 = require('bip32') const crypto = require('crypto') const tinysecp = require('tiny-secp256k1') -const ecurve = require('ecurve') -const secp256k1 = ecurve.getCurveByName('secp256k1') - describe('bitcoinjs-lib (crypto)', function () { it('can recover a private key from duplicate R values', function () { this.timeout(30000) @@ -29,8 +26,7 @@ describe('bitcoinjs-lib (crypto)', function () { input.z = new BN(m) }) - // finally, run the tasks, then on to the math - const n = new BN(secp256k1.n.toString()) + const n = new BN('fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141', 16) for (var i = 0; i < tx.ins.length; ++i) { for (var j = i + 1; j < tx.ins.length; ++j) {