feat(wasm-utxo): improve BIP32 implementation with private key support #133
+283
−361
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 enhances the WASM-UTXO BIP32 implementation with several key
improvements:
Added support for private key handling in BIP32.from_bip32_properties,
enabling proper conversion from JavaScript BIP32 interfaces for both
xpub and xprv formats
Refactored byte array handling with a type-safe
Bytes<N>wrapperthat implements TryFromJsValue, replacing direct buffer access with
a cleaner approach
Improved BIP32 tests with reusable fixtures, helper functions, and
a more consistent organization pattern for better maintainability
These changes ensure complete feature parity between WASM and utxolib
implementations while improving code quality and type safety.
Reference: BTC-2650