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
function verify( bytes32 inputHash, bytes32 outputHash, bytes calldata metadata, bytes calldata proof ) external returns (bool);: Checks whether the proof is cryptographically valid for the given input/output hashes. Returns true if valid, false if invalid, and reverts if it cannot be decoded.function proofSystem() external view returns (string memory);: Reports which proof method and which variant this verifier implements, as a string in the format "{paradigm}/{variant}".function proofProfile() external view returns (bytes32);: Returns a collision-resistant bytes32 value identifying this verifier's verification method and configuration version.event VerificationCompleted( bytes32 indexed taskId, bytes32 indexed agentId, bytes32 indexed verificationDigest, bool valid, bytes32 inputHash, bytes32 outputHash, bytes32 agentProofProfile, uint256 timestamp, bytes instanceId, // identifier of this verifier deployment; see Verification Commitment bytes chainId // identifier of the chain; see Verification Commitment );: Emitted every time verify() returns normally (including on verification failure), recording the verification result together with every value that produced it.function verify( bytes32 taskId, bytes32 agentId, bytes32 inputHash, bytes32 outputHash, bytes calldata proof ) external returns (bool valid, bytes32 verificationDigest);: Confirms whether the given agent (agentId) is authorized for a given task (taskId) and whether the submitted proof is valid, returning the verification result and the verification digest.function agentProofProfile() external view returns (bytes32);: An optional extension function that allows the currently active internal verifier configuration to be queried before calling verify().function getAgentVerifier() external view returns (IAgentVerifier);: Reports which IAgentVerifier this settlement contract is currently using.event AgentVerifierUpdated(bytes data);: Emitted whenever the IAgentVerifier in use changes, recording the information before and after the swap.
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
- IProofVerifier is an unverified external implementation: This standard only defines the interface and does not guarantee the safety of any IProofVerifier implementation. A verifier that always returns true, uses a broken circuit, or accepts a replayed attestation can silently disable the entire verification chain, so agent developers must audit the backend themselves before deployment.
- Replay attack prevention is the responsibility of IAgentVerifier: IProofVerifier itself does not define replay prevention, so a proof not bound to a chain ID, contract address, or nonce can be reused in a different context. To prevent duplicate verification, IAgentVerifier must implement its own usage policy, for example via taskId.
- verificationDigest is not meant for replay prevention: Because verificationDigest includes block.timestamp, repeated calls with identical content can still produce different values each time. This value cannot be used as a nullifier to block duplicates and should be used only as an audit commitment.
- Each link in the full trust chain must be checked independently: Each implementation along the trust chain from the settlement contract to IAgentVerifier to IProofVerifier must be audited independently. Merely complying with the interface specification guarantees the security of neither side.