Skip to content

ADR 024 session keys: reality check and feasibility review #1848

Closed

Description

@alpergundogdu

ADR 024 defers high-frequency signing to a Production plan built on Safe-7579 + erc7579/smartsessions session keys. That plan needs a reality check before it stays canon: since ADR 003's capability delegation landed (#1824), most of its motivation is gone, and its feasibility was never validated.

What capabilities already cover

The client/buyer side is superseded. A pool owner (EOA or Safe) issues a capped, expiring capability to a hot EOA signer — scope-limiting, a spending bound, and expiry-based revocation with zero account-abstraction machinery. ADR 012 already concedes this ("a capability-authorized signer already delivers most of that shape without any account-abstraction machinery"), and ADR 003's voucher path deliberately requires EOA signers for cheap lane redemption anyway.

The residual the plan still claims to solve

  • A smart account that must sign for itself — concretely, a Safe-addressed node operator signing slash_sig on every ProbeResponse/StreamResponse at wire speed. registerNode binds msg.sender and requesters verify slash_sig off-chain by recovery, so a Safe-addressed operator can be probed but not paid.
  • The off-chain ERC-1271 verification branch (ADR 024 § Off-Chain ERC-1271 Verification), which the ADR itself gates on the session-key work ("it belongs with the session-key work above rather than ahead of it").

Feasibility questions to answer

  1. Does smartsessions' ERC-1271 route actually validate the raw EIP-712 digests deCDN uses (slash_sig, vouchers, BindNodeId) for off-chain verifiers, at acceptable cost? Nodes verify by recovery today; the ERC-1271 branch costs an L2 RPC round-trip and a policy-module dependency on every verifier.
  2. The policy encodings are unspecified — ADR 024 punts to "a follow-up ADR will pin down the specific policy encodings." That follow-up does not exist.
  3. Safe-7579 adapter + smartsessions maturity/audit posture as a dependency for slash-critical signing.
  4. Is the residual worth the surface at all? The alternative is declaring the current posture permanent: operators serve from a software-held EOA; Safe custody is available for every cold path (bond, register, pool open/close, unbond) and for pool owners via capability-delegated EOA signers.

Decision to make

Keep (with feasibility validated and the policy follow-up written), trim to the operator-custody residual only, or retire the Production plan like the other design-ahead mechanisms. If retired, the dependents go with it in the same PR: ADR 012's production key-custody rows, the session-key sections of adr/appendix-operator-key-rotation.md, ADR 019's wallet/paymaster bullet, the ADR 024 summary in adr/architecture.md, and the RotateKeyTarget doc note in crates/common/src/cli/node.rs.

Activity

  1. added
    design:adr
    design:missing-decision
    on Aug 26, 2026
  2. moved this from Backlog to In progress in deCDNon Sep 21, 2026
  3. moved this from In progress to Done in deCDNon Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

design:adrdesign:missing-decision

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions