test(clearsign): v2 static-schema coverage for a relay solver swap (rebased)#304
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clean cherry-pick of
8a8bfea0from #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 —
V2SchemaDecodesRelaySolverArgsinunittests/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.