Skip to content

fix(hwi): validate and resolve display descriptors - #138

Open
trevarj wants to merge 1 commit into
wizardsardine:mainfrom
trevarj:trevarj/hwi_descriptor_display
Open

trevarj wants to merge 1 commit into
wizardsardine:mainfrom
trevarj:trevarj/hwi_descriptor_display

Conversation

@trevarj

@trevarj trevarj commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator
  • Reject Ledger singlesig display descriptors with mismatched script types, network coin types, or nonstandard derivation paths before displaying an address.
  • Resolve terminal singlesig descriptor wildcards at index zero and validate checksums against the original descriptor before normalization.
  • Match Python HWI checksum errors (-13) while preserving ownership errors (-7).
  • Cover ranged/concrete descriptors and ownership/path errors, resetting Ledger display approvals before each expected-error run.
  • Add the existing workspace miniscript crate as a parity-test dev-dependency for descriptor checksums.
  • Leave reference KeepKey signing approvals to Python HWI; keep external approvals candidate-only.

@trevarj
trevarj force-pushed the trevarj/hwi_descriptor_display branch 5 times, most recently from ff0638b to 45f2ce9 Compare November 16, 2026 11:27
@trevarj
trevarj force-pushed the trevarj/hwi_descriptor_display branch from 45f2ce9 to f7f0a28 Compare November 16, 2026 11:47
@trevarj
trevarj marked this pull request as ready for review November 16, 2026 12:23
@trevarj
trevarj requested a review from edouardparis November 17, 2026 10:41

This branch has not been deployed

No deployments
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