Skip to content

fix(psbt): detect taproot keypaths for network and output ownership#80

Merged
odudex merged 2 commits into
masterfrom
fix/taproot-signing
May 30, 2026
Merged

fix(psbt): detect taproot keypaths for network and output ownership#80
odudex merged 2 commits into
masterfrom
fix/taproot-signing

Conversation

@odudex
Copy link
Copy Markdown
Owner

@odudex odudex commented May 30, 2026

Taproot key origins live in the separate taproot_leaf_paths map, not the segwit keypaths map. psbt_detect_network and psbt_classify_output only read the latter, so testnet taproot PSBTs were misread as mainnet and taproot change/self-transfer outputs were classified as spends.

odudex added 2 commits May 30, 2026 10:14
Taproot key origins live in the separate taproot_leaf_paths map, not the segwit keypaths map. psbt_detect_network and psbt_classify_output only read the latter, so testnet taproot PSBTs were misread as mainnet and taproot change/self-transfer outputs were classified as spends.
@odudex odudex merged commit a565dc2 into master May 30, 2026
12 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.

1 participant