EIP-8397 · Draft · Core · 2026-08-26
EIP-8397: Frame Authenticator Signatures
Adds an AUTHENTICATOR signature scheme to EIP-8141 frame transactions: a contract verifies custom signatures (passkeys, post-quantum, etc.) in a pure, fixed-gas context, and the account just decides which authenticators it trusts.
What problem does it solve?
EIP-8141 frame transactions let the protocol verify secp256k1 and P-256 signatures natively. Any other scheme has to be an ARBITRARY signature checked by account code inside a VERIFY frame.
That mixes two very different jobs: expensive, state-independent cryptography (checking the signature math) and cheap, stateful authorization (does this account accept this key?). Because it all runs as account code that can read state, builders and sequencers find it hard to bound, cache or batch the expensive part.
EIP-8397 moves just the expensive part into protocol validation, with a fixed gas budget, and leaves the trust decision with the account.
How it works
A new signature scheme AUTHENTICATOR (0x03):
signer = authenticator contract address (20 bytes)
signature = key_id (32 bytes) || proof (variable)
- Protocol authentication. Before any frame runs, the protocol calls
authenticate(digest, proof)on the authenticator contract with exactly 50,000 gas (AUTHENTICATOR_GAS_LIMIT). The contract checks the proof against the transaction digest and returns thekey_idit proved. The signature is valid only if this equals the claimedkey_id. - Pure context. The call runs in static mode, with no storage, balance or other-code reads, no block or origin data, no logs, no creates, and
STATICCALLonly to precompiles. Any forbidden operation, revert or wrong return invalidates the signature. - Fixed cost. Every such signature costs
COLD_ACCOUNT_ACCESS_COST + 50,000(52,600 under the current schedule), charged in full. Signature bytes are priced at the non-zero byte rate because they are not covered by the signed hash. - Account authorization. In its
VERIFYframe, the account readsSIGPARAM(0x00)(the authenticator address) and checks it trusts it. It may also read the authenticatedkey_idvia the newSIGPARAM(0x04)for per-key rules.
The authenticator must be regular deployed code: not a precompile, not an EIP-7702 delegated account. Its code read is recorded in the EIP-7928 block access list but does not warm the address under EIP-2929.
Sample code
Authenticator interface, plus a sketch of the account side:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IFrameAuthenticator {
/// Must derive keyId from the proof itself, never echo an input value.
function authenticate(bytes32 digest, bytes calldata proof)
external view returns (bytes32 keyId);
}
// Account VERIFY logic (conceptual; SIGPARAM / APPROVE are EIP-8141 opcodes):
//
// require(SIGPARAM(0x01, i) == 0x03); // scheme == AUTHENTICATOR
// require(SIGPARAM(0x02, i) == 0); // signs the canonical tx hash
// address auth = address(SIGPARAM(0x00, i));
// require(isAuthorized[auth]);
// // optional: bytes32 keyId = SIGPARAM(0x04, i); enforce per-key policy
// APPROVE(scope);
Things to know
- Status: Draft. It is a delta on EIP-8141, itself a Draft, and full test vectors are still to be written.
- Trusting an authenticator means trusting every credential it accepts. Unless the account also checks
key_id, a permissive authenticator authorizes all of them. An authenticator that returns akey_idnot bound to the proof must never be authorized. - Code is not pinned to the address. Avoid authenticators whose address can be redeployed with different code; node caches must key on the code hash.
- Two
AUTHENTICATORsignatures (e.g. sender plus sponsor) cost 105,200 gas, above EIP-8141's 100,000MAX_VERIFY_GASmempool limit, so such transactions may be valid on-chain but not propagated publicly. - A non-empty explicit
msgdoes not necessarily commit to the transaction; accounts must reject it for approvals unless they verify that commitment themselves.