Skip to content

Commit f1d04ce

Browse files
authored
Merge pull request bitcoinjs#1563 from bitcoinjs/addPsbtMethods
Add PSBT methods
2 parents cd45774 + 7aaef30 commit f1d04ce

File tree

12 files changed

+991
-188
lines changed

12 files changed

+991
-188
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: 6 additions & 5 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": "bitcoinjs-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",
@@ -50,7 +50,7 @@
5050
],
5151
"dependencies": {
5252
"bech32": "^1.1.2",
53-
"bip174": "^1.0.1",
53+
"bip174": "^2.0.1",
5454
"bip32": "^2.0.4",
5555
"bip66": "^1.1.0",
5656
"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)