Skip to content

fix(psbt): skip unhardened paths when detecting the network - #199

Merged
odudex merged 1 commit into
masterfrom
fix/psbt-network-detection
Oct 14, 2026
Merged

odudex merged 1 commit into
masterfrom
fix/psbt-network-detection

Conversation

@odudex

@odudex odudex commented Oct 14, 2026

Copy link
Copy Markdown
Owner

A Nunchuk taproot multisig carries its unspendable internal key at a bare /0/0, which sorted first and read as coin 0, so a testnet PSBT was detected as mainnet. Require a hardened purpose'/coin' prefix and check every derivation entry, not just the first.

A Nunchuk taproot multisig carries its unspendable internal key at a bare /0/0, which sorted first and read as coin 0, so a testnet PSBT was detected as mainnet. Require a hardened purpose'/coin' prefix and check every derivation entry, not just the first.
@odudex
odudex merged commit 7cdd258 into master Oct 14, 2026
24 checks passed
@odudex
odudex deleted the fix/psbt-network-detection branch October 16, 2026 17:12
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