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')
77const crypto = require ( 'crypto' )
88const tinysecp = require ( 'tiny-secp256k1' )
99
10- const ecurve = require ( 'ecurve' )
11- const secp256k1 = ecurve . getCurveByName ( 'secp256k1' )
12-
1310describe ( '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 ) {
You can’t perform that action at this time.
0 commit comments