-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow passing in tapLeafHashToSign when calling signPsbt
- Loading branch information
1 parent
50e30a4
commit 5a1a6dd
Showing
5 changed files
with
372 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/node_modules/bitcoinjs-lib/src/psbt.js b/node_modules/bitcoinjs-lib/src/psbt.js | ||
index b071f37..1eded75 100644 | ||
--- a/node_modules/bitcoinjs-lib/src/psbt.js | ||
+++ b/node_modules/bitcoinjs-lib/src/psbt.js | ||
@@ -1342,7 +1342,7 @@ function getTaprootHashesForSig( | ||
} | ||
} | ||
const tapLeafHashes = (input.tapLeafScript || []) | ||
- .filter(tapLeaf => (0, psbtutils_1.pubkeyInScript)(pubkey, tapLeaf.script)) | ||
+ // .filter(tapLeaf => (0, psbtutils_1.pubkeyInScript)(pubkey, tapLeaf.script)) | ||
.map(tapLeaf => { | ||
const hash = (0, bip341_1.tapleafHash)({ | ||
output: tapLeaf.script, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.