Skip to content

Commit 94f0ae8

Browse files
committed
tests/integration: fix ecurve import, as removed
1 parent ffa5ad7 commit 94f0ae8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/integration/crypto.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ const bip32 = require('bip32')
77
const crypto = require('crypto')
88
const tinysecp = require('tiny-secp256k1')
99

10-
const ecurve = require('ecurve')
11-
const secp256k1 = ecurve.getCurveByName('secp256k1')
12-
1310
describe('bitcoinjs-lib (crypto)', function () {
1411
it('can recover a private key from duplicate R values', function () {
1512
this.timeout(30000)
@@ -29,8 +26,7 @@ describe('bitcoinjs-lib (crypto)', function () {
2926
input.z = new BN(m)
3027
})
3128

32-
// finally, run the tasks, then on to the math
33-
const n = new BN(secp256k1.n.toString())
29+
const n = new BN('fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141', 16)
3430

3531
for (var i = 0; i < tx.ins.length; ++i) {
3632
for (var j = i + 1; j < tx.ins.length; ++j) {

0 commit comments

Comments
 (0)