feat(abstract-utxo): migrate recovery flows to wasm-utxo backend#8057
Merged
OttoAllmendinger merged 7 commits intomasterfrom Feb 4, 2026
Merged
feat(abstract-utxo): migrate recovery flows to wasm-utxo backend#8057OttoAllmendinger merged 7 commits intomasterfrom
OttoAllmendinger merged 7 commits intomasterfrom
Conversation
Remove utxolib PSBT backend option and always use wasm-utxo for all recoveries. This simplifies the code and ensures consistency across all environments. Issue: BTC-2891 Co-authored-by: llm-git <llm-git@ttll.de>
Use PSBT method directly instead of importing another utility function that does the same thing. Issue: BTC-2891 Co-authored-by: llm-git <llm-git@ttll.de>
Refactor the backup key recovery flow to use WASM primitives instead of utxolib. Issue: BTC-2891 Co-authored-by: llm-git <llm-git@ttll.de>
Replace utxolib dependencies with wasm-utxo equivalents in cross-chain recovery module, including address handling, root wallet keys, and transaction utilities. Issue: BTC-2891 Co-authored-by: llm-git <llm-git@ttll.de>
Fix the cross-chain recovery address conversion to properly handle testnet Litecoin addresses by using the correct script hash value. Previously, the code was using Bitcoin mainnet's script hash for both mainnet and testnet Litecoin addresses, which caused incorrect conversions for testnet. Also added a check to skip processing for non-Litecoin coins and expanded tests to verify both mainnet and testnet address conversions. Issue: BTC-2891 Co-authored-by: llm-git <llm-git@ttll.de>
…ain recovery Use WASM-based address conversion for more robust handling of P2SH addresses between Litecoin and Bitcoin networks. The new implementation correctly converts both mainnet (M→3) and testnet (Q→2) address formats. Co-authored-by: llm-git <llm-git@ttll.de> Issue: BTC-2891
Remove @bitgo/unspents dependency as it's no longer needed with the wasm-utxo implementation. Issue: BTC-2891 Co-authored-by: llm-git <llm-git@ttll.de>
7447d8e to
92d3e52
Compare
davidkaplanbitgo
approved these changes
Feb 4, 2026
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 completes the migration of recovery flows to the wasm-utxo
backend, removing dependencies on the utxolib PSBT implementation.
Key changes:
The changes simplify the codebase by ensuring consistency across all
environments and properly handle address conversions for both mainnet
and testnet Litecoin addresses.
Issue: BTC-2891