Skip to content

test(clearsign): v2 static-schema coverage for a relay solver swap (rebased)#304

Merged
BitHighlander merged 1 commit into
developfrom
test/relay-v2-coverage-rebased
Jul 15, 2026
Merged

test(clearsign): v2 static-schema coverage for a relay solver swap (rebased)#304
BitHighlander merged 1 commit into
developfrom
test/relay-v2-coverage-rebased

Conversation

@BitHighlander

Copy link
Copy Markdown
Owner

Clean cherry-pick of 8a8bfea0 from #291 onto current develop (9ce5a013).

#291's branch sits on the old alpha lineage (76 behind / 102 ahead), so merging it directly risks dragging stale history; the actual content is this single additive test — V2SchemaDecodesRelaySolverArgs in unittests/firmware/signed_metadata.cpp (+64 lines, test-only, zero production code).

Release-sweep finding for 7.15: this was the only orphaned content on any fork branch not already in develop. Supersedes #291, which can be closed once this lands.

Adds V2SchemaDecodesRelaySolverArgs. Proves the device decodes a relay solver
call (0x02d5f05f: token, amount, requestId) from a v2 static-schema blob and
clear-signs it — the "add a new service via a signed payload" path for a
contract NOT in ethereum_contractHandled.

Calldata shape (selector + 3 fixed 32-byte words = 100 bytes, zero remainder)
taken byte-for-byte from real relay traffic (22 live samples, all identical).
firmware-unit 75/75 green locally.
@BitHighlander BitHighlander merged commit 2d2cf24 into develop Jul 15, 2026
17 checks passed
@BitHighlander BitHighlander deleted the test/relay-v2-coverage-rebased branch July 15, 2026 19:33
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