feat: SCOPE_POLICY initiation mode and nonceLane#28
Draft
chunter-cb wants to merge 1 commit into
Draft
Conversation
Align AccountConfiguration with the EIP-8130 draft: gated initiation is SCOPE_POLICY, policy slots are written from that bit, scope combos are stored verbatim for protocol use-time checks, and nonceLane carries the unbound / lane-or-nonceless / nonceless-only restriction.
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.
Summary
policyTypewithSCOPE_POLICY(0x10) as the gated-initiation grant; policy slots are written iff that bit is setnonceLane(uint16):0unbound,1..0xFFFElane-or-nonceless,0xFFFFnonceless-only (stored verbatim; protocol enforces)POLICY | PAYERallowed;POLICYvsSENDER/SIGNER/CONFIGis use-time)authenticateActor→(scope, nonceLane, policyTarget),getPolicy→(target, commitment), examples/tests, and 4337 bridge (SENDER/PAYER grants only)Matches the EIP draft: chunter-cb/EIPs#9
Test plan
forge testforge fmt --checkActorAuthorizedpacking,chainIddigests already aligned in EIP)