File tree Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 11sudo : false 
22language : node_js 
33node_js :
4-   - " 8 " 
4+   - " lts/* " 
55  - " 9" 
66  - " 10" 
77matrix :
88  include :
9-     - node_js : " 8 " 
9+     - node_js : " lts/* " 
1010      env : TEST_SUITE=standard 
11-     - node_js : " 8 " 
11+     - node_js : " lts/* " 
1212      env : TEST_SUITE=coverage 
1313env :
1414  - TEST_SUITE=unit 
Original file line number Diff line number Diff line change 1+ # 4.0.1  
2+ __ fixed__ 
3+ -  Fixed ` tiny-secp256k1 `  dependency version (used ` ecurve ` ) (#1139  )
4+ -  Fixed ` TransactionBuilder `  throwing when trying to sign ` P2WSH(P2WPKH) `  (#1135  )
5+ 
16# 4.0.0  
27__ added__ 
38-  Added [ ` bip32 ` ] ( https://github.com/bitcoinjs/bip32 )  dependency as a primary export (#1073  )
Original file line number Diff line number Diff line change 11{
22  "name" : " bitcoinjs-lib"  ,
3-   "version" : " 4.0.0 "  ,
3+   "version" : " 4.0.1 "  ,
44  "description" : " Client-side Bitcoin JavaScript library"  ,
55  "main" : " ./src/index.js"  ,
66  "engines" : {
3131  ],
3232  "dependencies" : {
3333    "bech32" : " ^1.1.2"  ,
34-     "bip32" : " ^0.1 .0"  ,
34+     "bip32" : " ^1.0 .0"  ,
3535    "bip66" : " ^1.1.0"  ,
3636    "bitcoin-ops" : " ^1.4.0"  ,
3737    "bs58check" : " ^2.0.0"  ,
4141    "pushdata-bitcoin" : " ^1.0.1"  ,
4242    "randombytes" : " ^2.0.1"  ,
4343    "safe-buffer" : " ^5.1.1"  ,
44-     "tiny-secp256k1" : " ^0.2.2 "  ,
44+     "tiny-secp256k1" : " ^1.0.0 "  ,
4545    "typeforce" : " ^1.11.3"  ,
4646    "varuint-bitcoin" : " ^1.0.4"  ,
4747    "wif" : " ^2.0.1" 
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