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.
commit: ea36e1b
Add opt-in PSBT support for legacy v1 wallet transactions. When
usePsbt: trueis passed tocreateTransaction, the function nowreturns a PSBT hex in the
transactionHexfield instead of a legacyunsigned transaction hex.
Key changes:
buildPsbtfunction in transactionBuilder.ts that constructsa PSBT with embedded signing metadata (BIP32 derivation paths,
redeem/witness scripts, global xpubs)
createRootWalletKeysFromV1Keychainshelper to convert v1keychain format to utxo-lib's RootWalletKeys
signTransactionin wallet.ts to auto-detect PSBT formatusing
utxolib.bitgo.isPsbt()and route to appropriate signingstructure
The PSBT format embeds all signing metadata directly in the
transaction, eliminating the need for a separate
unspentsarray.This prepares v1 wallets for gradual migration to PSBT-based signing.
Default behavior remains legacy format for backward compatibility.
Use
usePsbt: trueto opt-in to PSBT format.commit: 8d81f4c
Add PSBT transaction building capability for legacy v1 wallets with
gradual rollout:
commit: 8f512a1
Add fallback mechanism for PSBT transactions in the SDK. When PSBT
is requested but fails, automatically retry with legacy transaction
format and record the error details for reporting.