---
eip: 8397
label: EIP-8397
title: Frame Authenticator Signatures
status: Draft
type: Standards Track
category: Core
created: 2026-08-26
requires: 2929, 7702, 7928, 8141
official: https://eips.ethereum.org/EIPS/eip-8397
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8397.md
canonical: https://eips.huatuo.xyz/eip-8397/
lang: en
tldr: "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."
tags: [account-abstraction, signatures, frame-transactions, mempool, core]
---

# EIP-8397: Frame Authenticator Signatures

> Adds a bounded, state-independent custom-authentication signature scheme to frame transactions.

**TL;DR:** 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](/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`):

```text
signer    = authenticator contract address (20 bytes)
signature = key_id (32 bytes) || proof (variable)
```

1. **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 the `key_id` it proved. The signature is valid only if this equals the claimed `key_id`.
2. **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 `STATICCALL` only to precompiles. Any forbidden operation, revert or wrong return invalidates the signature.
3. **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.
4. **Account authorization.** In its `VERIFY` frame, the account reads `SIGPARAM(0x00)` (the authenticator address) and checks it trusts it. It may also read the authenticated `key_id` via the new `SIGPARAM(0x04)` for per-key rules.

The authenticator must be regular deployed code: not a precompile, not an [EIP-7702](/eip-7702/) delegated account. Its code read is recorded in the [EIP-7928](/eip-7928/) block access list but does not warm the address under [EIP-2929](/eip-2929/).

## Sample code

Authenticator interface, plus a sketch of the account side:

```solidity
// 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](/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 a `key_id` not 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 `AUTHENTICATOR` signatures (e.g. sender plus sponsor) cost 105,200 gas, above EIP-8141's 100,000 `MAX_VERIFY_GAS` mempool limit, so such transactions may be valid on-chain but not propagated publicly.
- A non-empty explicit `msg` does not necessarily commit to the transaction; accounts must reject it for approvals unless they verify that commitment themselves.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8397
