Discussion for ERC-8395: Delegated Signed HTTP Requests — an ERC-8128 extension with recursive, attenuating EIP-712 Delegation Grants for authenticated HTTP requests.
Feel free to join the Telegram group for more synchronous discussions.
Discussion for ERC-8395: Delegated Signed HTTP Requests — an ERC-8128 extension with recursive, attenuating EIP-712 Delegation Grants for authenticated HTTP requests.
Feel free to join the Telegram group for more synchronous discussions.
From a wallet-user perspective, this will depend heavily on how clearly a delegation is shown when it is approved. People should be able to see, in plain language: which app or service receives permission, what it can do, how long it lasts, and whether it can be passed on to another key or agent.
Short-lived and revocable permissions are much easier to approve when those limits are obvious at a glance.
I ran the reference helper (DelegationVerifier.sol) from PR #1967 under Foundry with the build settings from the README. Short version:
mode="eoa", and a grant proof has no such parameter.The PR had no runnable tests, so I wrote 12 (MIT licensed). Details and the test file: Add ERC: Delegated Signed HTTP Requests by jacopo-eth · Pull Request #1967 · ethereum/ERCs · GitHub
Not covered: the HTTP layer, the registry and the P-256 path. I am not claiming a vulnerability.
The latest revision removes requireNonReplayable, while maxRequestValiditySeconds only limits a request signature’s lifetime. On a route that permits replayable requests, a delegate can omit nonce, allowing a captured signed request to be reused within that window.
An issuer cannot express a nonce requirement through requiredComponents, since it explicitly excludes @signature-params. Should grants let issuers require non-replayable requests, with every descendant preserving that restriction even when the route permits replay?
Removing it was deliberate: a grant requiring Non-Replayable requests can be rejected at routes the issuer can’t anticipate, and it adds little, since a delegate can sign fresh in-scope requests anyway. Whether replay is harmful is up to each route, and the issuer can still limit exposure with maxRequestValiditySeconds, early invalidation and revocation.
What if the issuer signs a root grant as a plain EOA and later delegates to code without ERC-1271? Could a server that cached the earlier verification still accept requests that a fresh verifier would reject? A test that changes the account code between two requests would make the expected behavior clear.
Good catch. How long a cached grant proof survives a change to the issuer’s code is actually underspecified, as verifiers can keep accepting it after a fresh check would fail. Will cap reuse of those results at 60 seconds, like the status cache, unless the deployment documents a larger bound. Will also add a targeted test for it.