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
function registerScheme(SchemeInput calldata input) external returns (bytes32 schemeId);: Registers a new KYA scheme. Every field except schemeURI is permanently fixed once registered.function getScheme(bytes32 schemeId) external view returns (Scheme memory);: Looks up the full record of a stored scheme.function attest(Subject calldata subject, bytes32 schemeId, uint8 level, bytes32 claimDigest, uint64 expiresAt, string calldata evidenceURI, bytes32 evidenceHash) external returns (bytes32 assertionId);: In signature-based (ATTESTED) mode, the caller becomes the issuer and records a conclusion about the subject.function attestWithProof(Subject calldata subject, bytes32 schemeId, bytes calldata publicInputs, bytes calldata proof, string calldata evidenceURI) external returns (bytes32 assertionId);: In zero-knowledge-proof-based (PROVED) mode, anyone can submit a proof to record an assertion, with approval determined by the scheme's verifier contract.function revoke(bytes32 assertionId, uint16 reasonCode) external;: The assertion's issuer or the scheme controller revokes an assertion that is in ACTIVE status.function check(Subject calldata subject, bytes32 schemeId, uint8 minLevel, address[] calldata issuers) external view returns (bool);: Returns only a bool indicating whether the subject meets at least minLevel under a given scheme.function verify(bytes32 schemeId, bytes32 admissionDomain, bytes calldata publicInputs, bytes calldata proof) external view returns (bool ok, bytes32 subjectKey, bytes32 nullifier, uint8 level, bytes32 claimDigest, uint64 expiresAt, bytes32 anchor);: Verifies the proof and public inputs, converts them into framework fields, and applies the scheme's time-window rules.function registerPolicy(string calldata policyURI, bytes32 policyHash) external returns (bytes32 policyId);: Registers the URI and hash of a policy document and issues a policyId.function evaluate(Subject calldata subject, bytes32 policyId) external view returns (bool);: Evaluates the stored rules as a logical conjunction of full check calls and returns whether the subject satisfies the policy.event SchemeRegistered(bytes32 indexed schemeId, address indexed controller, uint8 mode, uint8 binding, uint8 resultKind, uint256 levelMask, address verifier, bytes32 verifierCodehash, string schemeURI, bytes32 schemeHash, bytes32 predecessor);: Announces that a new scheme has been registered, recording all immutable fields including mode, binding, result kind, levelMask, and verifier.event Asserted(bytes32 indexed assertionId, bytes32 indexed subjectKey, bytes32 indexed schemeId, address issuer, uint8 level, bytes32 claimDigest, uint64 expiresAt, string evidenceURI, bytes32 evidenceHash, bytes32 anchor, bytes32 bindingWitness);: Announces that a new assertion has been recorded, including the level, claimDigest, expiration time, anchor, and binding witness.event Revoked(bytes32 indexed assertionId, bytes32 indexed subjectKey, address indexed revoker, uint16 reasonCode);: Announces that an assertion has been revoked.event Superseded(bytes32 indexed previousAssertionId, bytes32 indexed newAssertionId);: Announces that a prior assertion for the same subject-scheme-issuer combination has been superseded by a new assertion.
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.