Skip to content

Conversation

@OttoAllmendinger
Copy link
Contributor

Support this category of change outputs at the explainPsbt level. This simplifies the parse
functions later on.

Issue: BTC-2732

OttoAllmendinger and others added 8 commits November 18, 2025 15:54
Add `toXpub()` helper function to extract an xpub string from various keychain
formats, and `toXpubTriple()` to convert triple keychain objects to an array
of xpub strings.

Issue: BG-62732

Co-authored-by: llm-git <llm-git@ttll.de>
Enables direct conversion of RootWalletKeys objects to BIP32 triples.
Also adds validation for array length.

Issue: BTC-2732

Co-authored-by: llm-git <llm-git@ttll.de>
Document the parameters of the explainPsbt function with JSDoc comments
to improve code readability and developer experience.

Issue: BTC-2732

Co-authored-by: llm-git <llm-git@ttll.de>
Clarify that network requests for address validation are only needed
for legacy transaction formats. Add more precise formatting to enhance
readability.

Issue: BTC-2732

Co-authored-by: llm-git <llm-git@ttll.de>
Implement support for identifying custom change outputs in transaction
explanations. This feature helps users understand which outputs are
regular wallet change vs. custom change, such as those from BitGo's
sweep consolidation wallets.

Issue: BTC-2732

Co-authored-by: llm-git <llm-git@ttll.de>
Add a test case to verify that the reference implementation correctly
identifies and handles custom change outputs in PSBTs.

Issue: BTC-2732

Co-authored-by: llm-git <llm-git@ttll.de>
Improve type safety for PSBT outputs by creating dedicated type guards and
helper functions for wallet and external outputs. This makes the code more
maintainable and adds explicit error handling for invalid output types.

Issue: BG-62732

Co-authored-by: llm-git <llm-git@ttll.de>
Add support for parsing custom change outputs using provided wallet xpubs.
This enhances the transaction explanation function to identify outputs that
might belong to a different wallet than the main one.

Issue: BTC-2732

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger force-pushed the BTC-2732.explain-custom-change-outputs branch from b81a2d3 to 80284e0 Compare November 18, 2025 15:10
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review November 19, 2025 12:45
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner November 19, 2025 12:45
@OttoAllmendinger OttoAllmendinger merged commit 9496493 into master Nov 20, 2025
45 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants