ERC-8274 AI Inference Proof Verification Interface (AI Inference Proof Verification)

Draft · Signatures & auth · created 2026-05-26

A standard that separates the proof algorithm layer from the application verification layer and connects them through a single common interface, regardless of whether the AI inference result is verified on-chain via zkML, opML, TEE, an oracle, or any other proof method.

Why it is needed

There are currently several different methods for verifying on-chain AI inference: zkML, opML, TEE, and oracle/multisig attestation. But there is no common specification to connect them to each other. Standards that require verified AI inference, such as ERC-8183 (agentic commerce), ERC-8004 (trustless agents), ERC-8001 (agent coordination), and ERC-7007 (verifiable AI-generated content), each exchange only opaque bytes and carry no model identifier or proof system identifier. As a result, every protocol that needs verification has to write a dedicated adapter for each proof system, producing N x M integration costs and vendor lock-in to specific proof providers.

What to implement

In depth

Two-layer separation: IProofVerifier and IAgentVerifier

IProofVerifier is the inner algorithmic layer: stateless, unaware of which agent or session is involved, and checking proofs using only the values passed in each call. It is implemented by proof system providers such as ZK teams, TEE vendors, and oracle networks. IAgentVerifier is the outer application layer, storing as state which IProofVerifier to use and what the agent authentication rules are, and is implemented by agent developers. This separation lets both parties implement and swap their own side independently, without knowing the other's internals.

The four parameters of verify()

IProofVerifier.verify() takes inputHash (a commitment to the model input), outputHash (a commitment to the model output), metadata (batch configuration that does not change across calls, such as a ZK circuit verification key or a TEE enclave hash), and proof (data specific to this one inference, such as a ZK proof, an EIP-712 signature, or a TEE attestation). The hashing scheme differs by backend and must be documented by the implementation. Once verification completes, it returns true/false for validity, and the call reverts if decoding itself is impossible.

proofSystem() and proofProfile()

proofSystem() reports the proof method as a string in the format "{paradigm}/{variant}". The four paradigms, zk, op, tee, and attestation, each carry different trust models and security assumptions (e.g. zk/sp1, tee/nitro). proofProfile() is a bytes32 value representing the detailed configuration version of that verifier; it is a self-reported value and is meaningful only within the scope of a specific verifier address. There is no guarantee that different addresses reporting the same proofProfile() behave identically, so the object of trust and review is always the verifier address, its deployed code, and its upgrade authority.

Computing agentProofProfile

IAgentVerifier must compute agentProofProfile from the chosen internal verifier configuration as keccak256(abi.encode(verifierAddress, IProofVerifier(verifierAddress).proofProfile(), keccak256(metadata))). Because this binds together the verifier address, that verifier's self-reported profile, and the metadata actually passed, even if different addresses happen to report the same proofProfile(), they are not treated as the same verification behavior. When using multiple internal verifiers, all participating (address, profile, metadata hash) combinations and the combination policy version must also be committed deterministically.

verificationDigest and OCP

verify() returns (valid, verificationDigest). verificationDigest is keccak256(abi.encode(...)) binding together taskId, agentId, inputHash, outputHash, valid, agentProofProfile, block.timestamp, instanceId, and chainId. instanceId is a chain-specific identifier pointing to the deployed instance (on Ethereum, this contract's address), and chainId is a CAIP-2 identifier (e.g. "eip155:1") encoded as UTF-8. Because the VerificationCompleted event carries all the same fields, an external observer can verify the record through an OCP procedure of recomputing, comparing, and confirming inclusion of the digest, without calling the contract.

The IAgentVerifiable declaration interface

A settlement contract must implement IAgentVerifiable, reporting the IAgentVerifier currently in use via getAgentVerifier(), and must emit an AgentVerifierUpdated(bytes data) event whenever a swap occurs. data uses an encoding chosen freely by the deployment; at its simplest this can be abi.encode(previousVerifier, newVerifier) recording only the before and after addresses, or it can carry a namespace and transition identifier to allow a richer upgrade history to be reconstructed.

Input provenance proofs (WYRIWE) and proof anchoring

verify() only confirms that the model produced a given output from a given input; it says nothing about whether that input was legitimate in the first place. WYRIWE (What You Read Is What You Execute) makes the path from the raw input to the sanitized input provable through a three-stage hash chain: rawInputHash, sanitizationPipelineHash, and inputHash. In addition, since verify() does not guarantee when the proof itself was created, proof anchoring can optionally be used to record proofHash in an on-chain registry, showing that the proof existed before a specific block. Both extensions are optional and not mandated by this ERC.

A proposal still in Draft stage

ERC-8274 is a Draft proposal written on 2026-05-26. Interface details, field composition, and recommended encodings may still change or be discontinued during community discussion and review.

Things to watch out for

Original ERC · ← ERCs