Skip to content

fix: add blind-sign gate to TRON TIP-712 typed hash signing#244

Open
BitHighlander wants to merge 2 commits into
developfrom
fix/tron-tip712-gate
Open

fix: add blind-sign gate to TRON TIP-712 typed hash signing#244
BitHighlander wants to merge 2 commits into
developfrom
fix/tron-tip712-gate

Conversation

@BitHighlander

Copy link
Copy Markdown
Owner

Summary

  • Finding 4 fix: fsm_msgTronSignTypedHash received pre-computed domain separator and message hashes from the host and signed them without warning the user that the device cannot verify the typed-data contents.
  • Added an explicit blind-sign gate before the hash display: device warns that it cannot verify typed-data structure and asks the user to confirm they trust the host application.
  • This matches the precedent set by Ethereum EIP-712 blind-sign handling on the device.

Files Changed

  • lib/firmware/fsm_msg_tron.h — add blind-sign confirmation gate in fsm_msgTronSignTypedHash before processing hashes

Test Plan

  • TRON TIP-712 typed data signing: device shows blind-sign warning before hash confirmation screens
  • User can cancel at the blind-sign gate (returns ActionCancelled)
  • User can proceed through blind-sign → domain hash → message hash → signing

TIP-712 signing sends only pre-computed hashes — the device cannot
reconstruct or verify the original typed-data struct. Typed-data
signatures can authorise token approvals and permits.

Add an explicit acknowledgement screen before showing the raw hashes
so users understand they are signing unverifiable data.
deps/device-protocol → 8ef74da (feat(ripple): memo + THORChain routing)
deps/python-keepkey  → bf870e6 (7.14.2: XRP memo + EVM depositWithExpiry + msg-signing)
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