tests/integration: fix ecurve import, as removed
This commit is contained in:
parent
ffa5ad7c28
commit
94f0ae85e3
1 changed files with 1 additions and 5 deletions
|
@ -7,9 +7,6 @@ const bip32 = require('bip32')
|
||||||
const crypto = require('crypto')
|
const crypto = require('crypto')
|
||||||
const tinysecp = require('tiny-secp256k1')
|
const tinysecp = require('tiny-secp256k1')
|
||||||
|
|
||||||
const ecurve = require('ecurve')
|
|
||||||
const secp256k1 = ecurve.getCurveByName('secp256k1')
|
|
||||||
|
|
||||||
describe('bitcoinjs-lib (crypto)', function () {
|
describe('bitcoinjs-lib (crypto)', function () {
|
||||||
it('can recover a private key from duplicate R values', function () {
|
it('can recover a private key from duplicate R values', function () {
|
||||||
this.timeout(30000)
|
this.timeout(30000)
|
||||||
|
@ -29,8 +26,7 @@ describe('bitcoinjs-lib (crypto)', function () {
|
||||||
input.z = new BN(m)
|
input.z = new BN(m)
|
||||||
})
|
})
|
||||||
|
|
||||||
// finally, run the tasks, then on to the math
|
const n = new BN('fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141', 16)
|
||||||
const n = new BN(secp256k1.n.toString())
|
|
||||||
|
|
||||||
for (var i = 0; i < tx.ins.length; ++i) {
|
for (var i = 0; i < tx.ins.length; ++i) {
|
||||||
for (var j = i + 1; j < tx.ins.length; ++j) {
|
for (var j = i + 1; j < tx.ins.length; ++j) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue