refactor(abstract-utxo): replace utxo-lib utility imports with standalone equivalents#8154
Merged
OttoAllmendinger merged 2 commits intomasterfrom Feb 16, 2026
Merged
Conversation
…lone equivalents Replace utxo-lib utility functions (crypto, address, bip32, opcodes) with standalone equivalents from @bitgo/wasm-utxo, @bitgo/secp256k1, and local implementations. This does not affect transaction decoding or signing paths. - verifyKey: replace utxolib.crypto.hash160/address.toBase58Check with local - recipient: replace utxolib.address.* with wasm-utxo address module - bip322: replace bitgo.isPsbt() with hasPsbtMagic() - replayProtection: replace utxolib address with wasm-utxo address - parseTransaction: replace utxolib.bitgo.toTNumber() with local helper - SigningError: inline PsbtParsedScriptType type locally - unspent: change ChainCode type import to wasm-utxo - signPsbtWasm, descriptor/transaction: import BIP32Interface from secp256k1 - test utils: add coinNameToNetwork map and getNetworkForCoinName helper Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> TICKET: BTC-2768
Replace dependency on bitcoinjs-message with @bitgo/wasm-utxo for message verification. Remove unused helper functions that are now handled by the wasm module. This simplifies the code and reduces dependencies. Issue: BTC-2768 Co-authored-by: llm-git <llm-git@ttll.de>
07bdaf6 to
a6b854b
Compare
davidkaplanbitgo
approved these changes
Feb 16, 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.
Replace utxo-lib utility functions (crypto, address, bip32, opcodes) with
standalone equivalents from @bitgo/wasm-utxo, @bitgo/secp256k1, and local
implementations. This does not affect transaction decoding or signing paths.
This PR includes:
This change simplifies the code and reduces dependencies while maintaining
the same functionality.
BTC-2768