Skip to content

fix: bind child reservations and verify transaction memos - #159

Merged
mellowcroc merged 2 commits into
mainfrom
fix/sca-event-memo
Oct 2, 2026
Merged

mellowcroc merged 2 commits into
mainfrom
fix/sca-event-memo

Conversation

@mellowcroc

@mellowcroc mellowcroc commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Findings

Addresses F-2026-19054 and F-2026-19134.

  • Treat the reservation event's proposalHash as a caller-supplied label. Read the reservation for the child account and compare its reconstructed configuration hash with the parent's approved proposal data before setup; reject malformed or ambiguous owner events.
  • Verify the Mina memo's version, Base58Check checksum, user tag, and declared content length before decoding. The offline CLI now imports the shared contracts decoder instead of maintaining a second implementation.

This PR targets #158 (fix/sca-token-id) and is the top of stack #156. Offline request/response format remains v1.

Validation and limits

On the rebased full local stack: contracts build; 153 focused contract tests, 13 UI tests, 27 offline CLI tests, and 5 E2E unit tests passed. Contract and CLI tests used SKIP_PROOFS=1. The SCA patches were unchanged by the rebase. The complete offline real-proof end-to-end run and hosted stack checks remain pending before merge. No deployment or release is included.

@mellowcroc
mellowcroc added this pull request to stack #156 October 2, 2026 07:30
@mellowcroc
mellowcroc requested a review from graikos October 2, 2026 08:00
graikos
graikos previously approved these changes Oct 2, 2026
@mellowcroc
mellowcroc force-pushed the fix/sca-event-memo branch 2 times, most recently from fb3692b to 4e603f5 Compare October 2, 2026 09:31
@mellowcroc
mellowcroc requested a review from graikos October 2, 2026 09:48
Base automatically changed from fix/sca-token-id to main October 2, 2026 11:49
@mellowcroc
mellowcroc merged commit 49a9776 into main Oct 2, 2026
9 of 10 checks passed
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.

2 participants