feat(abstract-utxo): enable wasm-utxo via decodeWith parameter#7703
Merged
OttoAllmendinger merged 6 commits intomasterfrom Dec 5, 2025
Merged
feat(abstract-utxo): enable wasm-utxo via decodeWith parameter#7703OttoAllmendinger merged 6 commits intomasterfrom
OttoAllmendinger merged 6 commits intomasterfrom
Conversation
Add helper function to convert various transaction types to a Buffer Issue: BTC-2806 Co-authored-by: llm-git <llm-git@ttll.de>
Support wasm-utxo based fixed script wallet PSBTs in the getMusig2Nonces method by implementing Musig2Participant for both PSBT types. Issue: BTC-2806 Co-authored-by: llm-git <llm-git@ttll.de>
Update signTransaction to support wasm PSBT signing. Return Buffer instead of Uint8Array for extracted transactions. Fix type signatures and parameter structure in signPsbtWithMusig2ParticipantWasm to match other implementations. Issue: BTC-2806 Co-authored-by: llm-git <llm-git@ttll.de>
…itGoPsbt Issue: BTC-2806 Co-authored-by: llm-git <llm-git@ttll.de>
Add decodeWith parameter to specify which PSBT decoder to use (utxolib or wasm-utxo). This allows switching between implementations when needed, which is important for compatibility and testing. Also add a helper function to validate decoder selection. Issue: BTC-2806 Co-authored-by: llm-git <llm-git@ttll.de>
Add test scenarios that verify wasm-utxo as a transaction decoding backend. Rework test suite structure for better readability and clearer test naming. Skip tests for networks not supported by wasm-utxo. Issue: BTC-2806 Co-authored-by: llm-git <llm-git@ttll.de>
lcovar
approved these changes
Dec 5, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds comprehensive support for wasm-utxo based PSBT handling and
transaction functions to the abstract-utxo module:
These changes enable compatibility between different PSBT implementations
and provide flexibility in choosing the appropriate decoder based on
requirements.
We use
wasm-utxoin the case that the/tx/buildroute replies with a property"decodeWith": "utxo-wasm"Issue: BTC-2806