Skip to content

Commit 55d7cd5

Browse files
authored
Merge pull request #2104 from baryon/master
sign tapLeaf with sighashType
2 parents eb12504 + 26f3eda commit 55d7cd5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/psbt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ function getTaprootHashesForSig(
13581358
inputIndex,
13591359
signingScripts,
13601360
values,
1361-
transaction_1.Transaction.SIGHASH_DEFAULT,
1361+
sighashType,
13621362
tapLeaf.hash,
13631363
);
13641364
return {

ts_src/psbt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,7 @@ function getTaprootHashesForSig(
17891789
inputIndex,
17901790
signingScripts,
17911791
values,
1792-
Transaction.SIGHASH_DEFAULT,
1792+
sighashType,
17931793
tapLeaf.hash,
17941794
);
17951795

0 commit comments

Comments
 (0)