Skip to content

Commit fb2c364

Browse files
committed
Merge branch 'master' into cashv5
2 parents 98a1334 + f1d04ce commit fb2c364

22 files changed

+1376
-341
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 5.2.0
2+
__changed__
3+
- Updated PSBT to allow for witnessUtxo and nonWitnessUtxo simultaneously (Re: segwit psbt bug) (#1563)
4+
5+
__added__
6+
- PSBT methods `getInputType`, `inputHasPubkey`, `inputHasHDKey`, `outputHasPubkey`, `outputHasHDKey` (#1563)
7+
18
# 5.1.10
29
__fixed__
310
- Fixed psbt.signInputAsync (and consequentially all Async signing methods) not handling rejection of keypair.sign properly (#1582)

package-lock.json

Lines changed: 166 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bitcoinforksjs-lib",
3-
"version": "5.1.10",
3+
"version": "5.2.0",
44
"description": "Client-side Bitcoin JavaScript library",
55
"main": "./src/index.js",
66
"types": "./types/index.d.ts",
@@ -51,7 +51,7 @@
5151
"dependencies": {
5252
"bech32": "^1.1.2",
5353
"big-integer": "^1.6.44",
54-
"bip174": "^1.0.1",
54+
"bip174": "^2.0.1",
5555
"bip32": "^2.0.4",
5656
"bip66": "^1.1.0",
5757
"bitcoin-ops": "^1.4.0",

src/bufferutils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ function reverseBuffer(buffer) {
4242
}
4343
exports.reverseBuffer = reverseBuffer;
4444
function cloneBuffer(buffer) {
45-
const clone = Buffer.alloc(buffer.length);
45+
const clone = Buffer.allocUnsafe(buffer.length);
4646
buffer.copy(clone);
47-
return buffer;
47+
return clone;
4848
}
4949
exports.cloneBuffer = cloneBuffer;
5050
/**

0 commit comments

Comments
 (0)