Skip to content

feat: SCOPE_POLICY initiation mode and nonceLane#28

Draft
chunter-cb wants to merge 1 commit into
mainfrom
feat/scope-policy-and-nonce-lane
Draft

feat: SCOPE_POLICY initiation mode and nonceLane#28
chunter-cb wants to merge 1 commit into
mainfrom
feat/scope-policy-and-nonce-lane

Conversation

@chunter-cb

Copy link
Copy Markdown
Collaborator

Summary

  • Replace policyType with SCOPE_POLICY (0x10) as the gated-initiation grant; policy slots are written iff that bit is set
  • Add nonceLane (uint16): 0 unbound, 1..0xFFFE lane-or-nonceless, 0xFFFF nonceless-only (stored verbatim; protocol enforces)
  • Store unknown scope bits verbatim; no write-time exclusivity checks (POLICY | PAYER allowed; POLICY vs SENDER/SIGNER/CONFIG is use-time)
  • Update 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 test
  • forge fmt --check
  • Spec review against EIP PR for ABI parity (ActorAuthorized packing, chainId digests already aligned in EIP)

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.
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