ERC-8419 Know-Your-Agent (KYA) framework

Draft · Signatures & auth · created 2026-09-19

A standard that lets AI agents register and look up trust verification results they have received in a common format, and present the supporting basis while hiding it behind signature-based attestations or zero-knowledge proofs.

Why it is needed

ERC-8004 is merely a place to accumulate an agent's reputation and verification signals; it provides no way for both sides to exchange the conclusion of whether 'this agent may be accepted' in the same terms. Payment networks, compliance vendors, and marketplaces each use their own KYA (Know-Your-Agent) verification result format, so a verification obtained from one vendor is not understood by another service. There is also no way to convey a condition such as 'level 3 or above under scheme X, issuer A or B' to a counterparty as a single machine-readable statement. Moreover, sensitive facts such as affiliated entity, jurisdiction, capital strength, or model provenance cannot be disclosed to every counterparty; without a framework that accepts zero-knowledge proofs as first-class evidence, disclosure ends up being forced, and the operators who need verification the most end up avoiding the system.

What to implement

In depth

Subject and binding

A KYA assertion targets a Subject composed of subjectType and subjectData. subjectKey is computed as keccak256(abi.encode(subjectType, subjectData)); for the erc8004 type, it encodes (chainId, identityRegistry, agentId). Even for the same subjectKey, what the conclusion is actually about depends on the binding declared by the scheme. identity refers to the record itself, controller to the owner at issuance time (ERC-721 ownerOf), and instance to the specific code/model configuration identified by claimDigest. Controller binding records the owner witness at issuance time and, at lookup time, compares it against the current owner to determine SATISFIED, VIOLATED, or UNEVALUABLE.

Immutability of the scheme registry

A scheme registered via registerScheme has every field except schemeURI (schemeHash, mode, binding, resultKind, levelMask, verifier, verifierCodehash, predecessor) permanently fixed. schemeId is computed as keccak256(abi.encode(chainId, registry address, msg.sender, schemeHash, nonce)), making it unique per chain and controller. levelMask commits the set of valid level values, causing the registry to reject assertions for undeclared levels. If the verification rules change, rather than modifying the same schemeId, a new scheme must be registered specifying a predecessor.

Recording and looking up assertions

attest (ATTESTED) has the caller become the issuer, recording the level, claimDigest, and expiration, while attestWithProof (PROVED) allows anyone to relay a proof, with approval determined by scheme.verifier. assertionId is computed as keccak256(abi.encode(subjectKey, schemeId, issuer, issuerNonce)); when a new assertion is recorded for the same (subjectKey, schemeId, issuer) combination, the previous one is changed to SUPERSEDED. resolve is a full lookup that checks status (ACTIVE), expiration, and binding conditions; resolveLocal is a registry-local lookup that skips the binding check; and check answers only with a bool on whether at least minLevel is met.

ZK-KYA profile

In PROVED mode, an assertion is approved by a zero-knowledge proof instead of a signature. The on-chain issuer field is not the party that verified the fact but the verifier contract that approved the proof; the actual fact-checker hides behind the set committed by anchor. The proof must be bound to schemeId (which rule) and admissionDomain (which chain, which contract it is used on), and reuse is prevented via a nullifier. If nullifierScope is scheme-epoch, it is valid only within the time window defined by epochSeconds and epochGrace, enabling periodic re-attestation. Using issuer concealment via issuerSetRoot exposes the subjectKey but hides who vouched for it and the underlying facts.

Handshake

Two agents, or an agent and a counterparty, perform KYA off-chain by exchanging the EIP-712 typed data KYAChallenge/KYAPresentation. The prover signs the KYAPresentation with the key controlling proverSubjectKey (ERC-1271 contract accounts supported), and it can contain assertion IDs recorded in the registry, a session-scoped ephemeral proof, or both. The counterparty must verify the signature, challengeHash match, expiration, nonce one-time use, and scheme/policy match before approving. Bidirectional KYA is simply performing this exchange independently twice, once in each direction.

Policy

A policy is declared as an allOf/anyOf tree of (schemeId, minLevel, issuers) combinations. On-chain evaluation is optional, and what IKYAPolicyEvaluator can express is exactly a top-level logical conjunction of minLevel>0 rules for ordered-level schemes. rulesHash is the commitment of this Rule[] array, and evaluate computes it as a logical conjunction of full (binding-inclusive) IKYARegistry.check calls over the stored rules.

ERC-8004 bridge

To make a KYA conclusion visible to clients that understand only ERC-8004, the KYA Bridge takes on the validator role of the ERC-8004 Validation Registry and mirrors it as a single score from 0 to 100. This mirror is an optional, lossy snapshot that omits expiration, revocation, binding, and anchor information and is current only as of the last sync. responseMap must assign a score of 0 to level 0, and the score must not decrease as the level increases; when the configuration changes, configHash changes accordingly, so each response can be traced to the configuration it came from.

Proposal status

This ERC was proposed in September 2026 and is still in Draft status. Specific interface details or figures may change during review, or the proposal may stall.

Original ERC · ← ERCs