Skip to content

Commit

Permalink
tests/integration: fix ecurve import, as removed
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Jul 23, 2018
1 parent ffa5ad7 commit f2e3893
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/integration/crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -30,7 +27,7 @@ describe('bitcoinjs-lib (crypto)', function () {
})

// 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) {
Expand Down

0 comments on commit f2e3893

Please sign in to comment.