File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ const bip32 = require('bip32')
7
7
const crypto = require ( 'crypto' )
8
8
const tinysecp = require ( 'tiny-secp256k1' )
9
9
10
- const ecurve = require ( 'ecurve' )
11
- const secp256k1 = ecurve . getCurveByName ( 'secp256k1' )
12
-
13
10
describe ( 'bitcoinjs-lib (crypto)' , function ( ) {
14
11
it ( 'can recover a private key from duplicate R values' , function ( ) {
15
12
this . timeout ( 30000 )
@@ -29,8 +26,7 @@ describe('bitcoinjs-lib (crypto)', function () {
29
26
input . z = new BN ( m )
30
27
} )
31
28
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 )
34
30
35
31
for ( var i = 0 ; i < tx . ins . length ; ++ i ) {
36
32
for ( var j = i + 1 ; j < tx . ins . length ; ++ j ) {
You can’t perform that action at this time.
0 commit comments