ERC-8395: Signed HTTP Requests with Ethereum

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:

  • The g0 and g1 vectors from test-vectors.md reproduce exactly, and the build reproduces the README’s pinned runtime code hash, init-code hash and CREATE2 address.
  • ERC-6492 verification works with a real CREATE2 factory: the counterfactual issuer is accepted, nothing stays deployed after the call, and wrong factory data gives false.
  • One open question about EIP-7702 accounts: with the same key and signature, a plain EOA verifies, but an account whose delegate has no ERC-1271 does not verify on the erc8128 path. Since a root always goes through Universal Account verification (§3.6 of ERC-8395), is that intended? The latest ERC-8128 text sends accounts with code, including 7702, through ERC-1271 unless the request carries 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?

1 Like

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.

1 Like

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.