feat(wasm-utxo): extend descriptor testutils#151
Merged
Conversation
045c7b1 to
405e90a
Compare
Implements Bitcoin message signing and verification according to BIP-137 standard. This adds a new `message` module with `signMessage` and `verifyMessage` functions that work with ECPair keys. Issue: BTC-2866 Co-authored-by: llm-git <llm-git@ttll.de>
Add methods to properly compare BIP32 keys and safely serialize them: - `equals()` method for checking key equality without serialization - `toJSON()` that safely returns xpub even for private keys - Custom Node.js inspect representation for better debugging - Rust implementation of key equality comparison Issue: BTC-2866 Co-authored-by: llm-git <llm-git@ttll.de>
Port test utilities from utxo-core for descriptor wallet testing: - Add fixture handling and object serialization helpers - Add descriptor template functions to create common test descriptors - Add mock PSBT utilities for descriptor wallet testing Issue: BTC-2866 Co-authored-by: llm-git <llm-git@ttll.de>
Adds a new method to PSBT that returns outputs with resolved address strings derived from each output script. This allows getting proper addresses formatted for specific coin networks without needing to call address.fromOutputScript separately for each output. Issue: BTC-2866 Co-authored-by: llm-git <llm-git@ttll.de>
Add a new export for testutils in package.json to allow other modules to import helper functions and test fixtures. Issue: BTC-2866 Co-authored-by: llm-git <llm-git@ttll.de>
405e90a to
7e28567
Compare
davidkaplanbitgo
approved these changes
Feb 10, 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 adds several features to the wasm-utxo module to enhance Bitcoin
wallet capabilities:
Add Bitcoin message signing utilities (BIP-137)
signMessageandverifyMessagefunctionsAdd BIP32 improvements
equals()method for key comparisontoJSON()for safe serializationAdd descriptor testing utilities
Add PSBT address resolution
getOutputsWithAddressmethodIssue: BTC-2866