Skip to content

EDGE: bugfix: Reject uncompressed SegWit pubkeys with derivation paths - #868

Open
scgbckbone wants to merge 2 commits into
Coldcard:new_edgefrom
scgbckbone:bugfix/wif-segwit-uncompressed-paths
Open

scgbckbone wants to merge 2 commits into
Coldcard:new_edgefrom
scgbckbone:bugfix/wif-segwit-uncompressed-paths

Conversation

@scgbckbone

Copy link
Copy Markdown
Collaborator

Summary

  • reject uncompressed public keys in native and wrapped SegWit when derivation metadata selects the signing key
  • extend the existing regression test to cover inputs both with and without derivation paths, including the Taproot negative case

Without the derivation-path check, the WIF fallback guard is bypassed and the device returns a partial signature for a nonstandard SegWit spend.

@scgbckbone scgbckbone left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK by KIMI K3.1 PRO

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