ERC-8294 Standard interface for validation networks (Validation Network for ERC-8004)

Draft · Signatures & auth · created 2026-04-13

A standard interface that lets the validator address in the ERC-8004 validation registry be a network composed of multiple independent validators rather than a single party, unifying the selection policy and signed attestation format.

Why it is needed

The ERC-8004 validation registry left the validator address open to accept any address. As a result, single-address validators, TEE (trusted execution environment) based attestors, and custom-built multi-validator schemes each emerged independently. In particular, every team wanting to use multiple validators has had to design its own selection rules, attestation format, and verification method from scratch, meaning clients that want to integrate with multiple networks must write separate verification code for each one. Furthermore, even when multiple validators are used, if they belong to the same operator, collusion is easy and trust is not actually distributed, and there was no common way to screen for that.

What to implement

In depth

Three identity layers and interface detection

The specification distinguishes three layers: the validation network (the contract address used as the validatorAddress in ERC-8004), the validator (an individual signing address chosen by the network per request), and the operator (an entity that manages one or more validators). Because a single operator can control multiple validators, the number of validators should not be assumed to equal the number of operators. The network must implement ERC-165 so that supportsInterface returns true for the interface IDs of IERC165 and IValidationNetwork, and false for 0xffffffff. This is the basic method by which clients can tell whether a given validatorAddress is a network conforming to this standard or just an ordinary single validator.

SelectionPolicy field

Callers express their desired level of assurance by passing an ABI-encoded SelectionPolicy to submit(). It consists of version (currently 1), selectionSize (the number of validators to select, N, at least 1), minOperators (the minimum number of distinct operators required within the selected set, D, at least 1 and at most N), minResponses (the minimum number of attestations required for a valid aggregated response, M, at least 1 and at most N), deadlineSeconds (the time limit from submit to response), verdictMode (0 = any-pass, 1 = majority, 2 = unanimous), challengeKind (a tag for the type of validation), and extensions (additional network-specific fields, empty for the standard policy). If minOperators or minResponses exceeds selectionSize, or either value is 0, the policy is invalid: supportsPolicy must return false and submit must revert with PolicyNotSupported.

Validation Lifecycle and Status Lookup

A request proceeds through the following stages: not accepted (the network does not yet know about it), accepted (RequestAccepted emitted), validator selection complete (ValidatorsSelected emitted), response complete (validationResponse called with a tag of vni:ok), and failed termination (validationResponse called with a tag other than vni:ok, such as vni:timeout). The state value returned by status() corresponds to 0 = not accepted, 1 = accepted or selection complete, 2 = response complete, 3 = failed termination; within state 1, a validatorCount of 0 indicates the accepted stage, while a value of N indicates the selection-complete stage. Only one final response may be recorded for a given requestHash, and if more than one exists, the one recorded first is treated as canonical.

Operator Diversity Enforcement

minOperators must be enforced at the time validators are selected, not at the time of response. If the number of distinct operators the network actually secures is lower than the minOperators the policy requires, the network must not quietly lower the bar; it must return false from supportsPolicy and revert submit with PolicyNotSupported. Conversely, if the operator count was sufficient at acceptance time but drops below the threshold before a response is produced, the vni:insufficient-operators tag is used. How operators are defined and grouped varies by network, and each network must publish, alongside its contract, a concentration analysis covering its operator identification methodology, operator count, top-operator share, and concentration metrics such as the Herfindahl-Hirschman Index.

Attestation Envelope and attestationsRoot Calculation

Each validator signs an Attestation struct in EIP-712 format containing requestHash, agentId, validator, verdict (0 to 100), evidenceHash, issuedAt, challengeKind, and nonceHash. The aggregated response file carries these attestations, their signatures, the list of selected validators, and the overall verdict as JSON, with a schema field of vni-aggregated-response/v1. attestationsRoot is a Merkle root computed by taking each attestation's EIP-712 struct hash as a leaf, sorting by validator address in ascending order, then at each level hashing the concatenation of the smaller child hash followed by the larger. The responseHash recorded in the registry is the keccak256 hash of this entire file after normalizing it to JSON per the RFC 8785 JCS rules.

Aggregated Verdict and Response Tags

In this version, the aggregated verdict takes only two values: 0 or 100. For any-pass, the result is 100 if any single attestation is 50 or above; for majority, 100 if more than half of the attestations are 50 or above; for unanimous, 100 only if every attestation is 50 or above. The tag field in the registry must be one of vni:ok (a valid verdict produced from sufficient attestations), vni:timeout (minResponses was not met within the deadline, so the verdict must be 0), vni:insufficient-operators (operator count fell short before the response, so the verdict must be 0), vni:cancelled (cancelled, verdict must be 0), or a network-specific value prefixed with vni:x-. Clients must not treat the verdict value as a meaningful result, nor factor it into reputation, for any tag other than vni:ok.

Payment Flow, Open Questions, and Draft Status

When quote() returns a finite priceWei, callers typically send that amount as the msg.value of submit(); when it returns OUT_OF_BAND_PRICE, which is type(uint256).max, the price is instead settled separately through an off-chain channel such as x402. When exactly payment is finalized, and whether it is refunded on vni:timeout or vni:cancelled, is left to network-specific documentation and is not mandated by this standard. Whether to fix the policy schema at this layer, whether to maintain a separate validation-network registry, whether to standardize slashing hooks, and whether to add spectrum verdicts such as averages remain open questions on which the co-authors and community are still seeking input. This proposal is currently in Draft status and further details may change.

Things to watch out for

Original ERC · ← ERCs