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
function supportsInterface(bytes4 interfaceId) external view returns (bool);: Checks which interfaces this address supports. This is the basic means of determining whether an address is a network conforming to this standard.function getValidationStatus(bytes32 requestHash) external view returns ( address validatorAddress, uint256 agentId, uint8 response, bytes32 responseHash, string memory tag, uint256 lastUpdate );: Queries the current status of a request recorded in the ERC-8004 validation registry (validator address, response value, tag, etc.).function OUT_OF_BAND_PRICE() external view returns (uint256);: Returns a special value indicating that the price is determined off-chain, through a separate channel.function validationRegistry() external view returns (address);: Returns the address of the ERC-8004 validation registry to which this network is connected.function submit(bytes32 requestHash, bytes calldata policy, bytes calldata payload) external payable;: Submits a validation request to this network. This triggers the process by which the network selects validators and collects attestations.function quote(bytes calldata policy) external view returns (uint256 priceWei, uint32 etaSeconds);: Reports the price (in wei) and expected time (in seconds) for a given policy.function policySchema() external view returns (string memory);: Returns the address of the JSON schema document describing the selection policies this network accepts.function verificationProfile() external view returns (bytes32);: Returns a fixed value identifying the aggregation and verification method this network uses.function supportsPolicy(bytes calldata policy) external view returns (bool);: Checks in advance whether this network can handle a given policy.function status(bytes32 requestHash) external view returns ( uint8 state, uint16 validatorCount, bool responseAggregated );: Reports the status of an in-progress or completed request, the number of validators selected, and whether a response has been recorded in the registry.event RequestAccepted( bytes32 indexed requestHash, bytes policy, uint256 priceWei );: Emitted when a request is accepted by the network.event ValidatorsSelected( bytes32 indexed requestHash, address[] validators, bytes32 selectionEntropy );: Emitted when the validators that will process a given request have been selected.event AttestationsAggregated( bytes32 indexed requestHash, address[] validators, bytes32 attestationsRoot, uint8 aggregatedVerdict );: Emitted when individual attestations have been aggregated into a single result and submitted to the validation registry.
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
- Operator Concentration: The credibility of a minOperators claim depends on the actual distribution of operators. Networks must publish current concentration analyses, and the absence of such an analysis, or a stale one, should be treated as a reason to distrust the network itself.
- Operator-level Sybil: If a single entity splits its stake across multiple apparent operators, the minOperators guarantee is nullified. This is prevented not by a contract field but by the operator identification methodology that the network publishes.
- Validator Collusion: Random selection and a floor on operator diversity reduce the risk of collusion but do not eliminate it entirely. Because per-validator addresses are exposed in the aggregated response, clients can detect collusion on their own.
- Replay Attacks: Each attestation carries a nonceHash and an issuedAt, allowing freshness to be checked, and because the network-issued nonce must be bound to the requestHash, an attestation from one request cannot be replayed for another.
- Stale Attestations: issuedAt is based on the validator's own clock and may differ from chain time. Clients should compare issuedAt against the registry's lastUpdate and treat an unusually large discrepancy with suspicion.