Merge pull request #1139 from bitcoinjs/deps
4.0.1 | bump dependencies to 1.0.0 versions (and simplify Travis)
This commit is contained in:
commit
d8b66641b3
4 changed files with 12 additions and 11 deletions
|
@ -1,14 +1,14 @@
|
||||||
sudo: false
|
sudo: false
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- "8"
|
- "lts/*"
|
||||||
- "9"
|
- "9"
|
||||||
- "10"
|
- "10"
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- node_js: "8"
|
- node_js: "lts/*"
|
||||||
env: TEST_SUITE=standard
|
env: TEST_SUITE=standard
|
||||||
- node_js: "8"
|
- node_js: "lts/*"
|
||||||
env: TEST_SUITE=coverage
|
env: TEST_SUITE=coverage
|
||||||
env:
|
env:
|
||||||
- TEST_SUITE=unit
|
- TEST_SUITE=unit
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
# 4.0.1
|
||||||
|
__fixed__
|
||||||
|
- Fixed `tiny-secp256k1` dependency version (used `ecurve`) (#1139)
|
||||||
|
- Fixed `TransactionBuilder` throwing when trying to sign `P2WSH(P2WPKH)` (#1135)
|
||||||
|
|
||||||
# 4.0.0
|
# 4.0.0
|
||||||
__added__
|
__added__
|
||||||
- Added [`bip32`](https://github.com/bitcoinjs/bip32) dependency as a primary export (#1073)
|
- Added [`bip32`](https://github.com/bitcoinjs/bip32) dependency as a primary export (#1073)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bitcoinjs-lib",
|
"name": "bitcoinjs-lib",
|
||||||
"version": "4.0.0",
|
"version": "4.0.1",
|
||||||
"description": "Client-side Bitcoin JavaScript library",
|
"description": "Client-side Bitcoin JavaScript library",
|
||||||
"main": "./src/index.js",
|
"main": "./src/index.js",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bech32": "^1.1.2",
|
"bech32": "^1.1.2",
|
||||||
"bip32": "^0.1.0",
|
"bip32": "^1.0.0",
|
||||||
"bip66": "^1.1.0",
|
"bip66": "^1.1.0",
|
||||||
"bitcoin-ops": "^1.4.0",
|
"bitcoin-ops": "^1.4.0",
|
||||||
"bs58check": "^2.0.0",
|
"bs58check": "^2.0.0",
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
"pushdata-bitcoin": "^1.0.1",
|
"pushdata-bitcoin": "^1.0.1",
|
||||||
"randombytes": "^2.0.1",
|
"randombytes": "^2.0.1",
|
||||||
"safe-buffer": "^5.1.1",
|
"safe-buffer": "^5.1.1",
|
||||||
"tiny-secp256k1": "^0.2.2",
|
"tiny-secp256k1": "^1.0.0",
|
||||||
"typeforce": "^1.11.3",
|
"typeforce": "^1.11.3",
|
||||||
"varuint-bitcoin": "^1.0.4",
|
"varuint-bitcoin": "^1.0.4",
|
||||||
"wif": "^2.0.1"
|
"wif": "^2.0.1"
|
||||||
|
|
|
@ -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