Skip to content

Documentation

Verifying signatures

Check signed activity and identities against the chain. Every report lists each check with one precise result, the block it was pinned to and its data sources.

How results are reported

A report never collapses into a single “verified”. Each check resolves to PASS, FAIL, WARN, INFO, UNKNOWN, UNAVAILABLE or NOT CHECKED, with a detail sentence and its source.

  • overall: "PASS" only when every required check passed;
  • "FAIL" when any required check failed;
  • "INCOMPLETE" otherwise — for example, when the RPC is unreachable every chain check is UNAVAILABLE. A report never passes on missing evidence.

Activity reports

verify.ts
const report = await agentid.verifyActivity(record, { payload }); // payload is optional

report.overall;     // "PASS" | "FAIL" | "INCOMPLETE"
report.blockNumber; // every chain read is pinned to this block
report.sources;     // e.g. ["local", "rpc:46630@158260061"]
report.disclaimer;  // the signature disclaimer, always included
terminal
curl -X POST https://agentid-beryl.vercel.app/api/v1/verify/signature \
  -H 'content-type: application/json' \
  -d '{"record": { … }, "payload": { … }}'
CheckRequiredWhat it establishes
Record format validrecord.schemayesAll fields present and well-formed (addresses, uint ranges, nonce charset, signature length).
Network matches recordnetwork.chainyesThe RPC's eth_chainId equals the record's chainId.
Registry contract supportedregistry.supportedyesThe record's registry is the configured ERC-8004 registry for that chain and has code.
Signature validrecord.signatureyesEIP-712 signature over the record recovers to — or is accepted by (ERC-1271) — record.signer.
Payload matches signed hashrecord.payloadwith payloadRequired when you supply the payload: its hash equals payloadHash. Otherwise NOT CHECKED (payload not disclosed).
Timestamp not future-datedrecord.timestampyesThe declared timestamp is not more than 300 s in the future.
Agent identity registered onchainidentity.registeredyesThe agent exists in the registry (ownerOf succeeds at the pinned block).
Signing key authorized at record timesigner.authorized_at_timeyesThe key was authorized for the agent at the best available evidence time (see below).
Signing key currently authorizedsigner.authorized_nownoWhether the key is still authorized. INFO when it has been revoked since — informational only.
Anchored onchainrecord.anchornoPASS with block and tx when anchored; INFO when not (anchoring is optional); NOT CHECKED without an anchor contract.
A valid signature proves that an authorized signing key signed this record. It does not prove that the underlying task actually occurred.

Authorization at record time#

Keys can be revoked, so a record must be judged against the key's authorization history, rebuilt from KeyAuthorized, KeyRevoked, AllKeysRevoked, OwnerSynced and registry Transfer events. The evidence time is the strongest available:

  1. Onchain anchor — the block of the anchoring transaction;
  2. AgentID receipt — the block at which AgentID checked authorization when the record was published;
  3. Declared timestamp — self-declared by the signer; it counts only while the key has not been invalidated since.

Result: PASS if the key was authorized at that time, FAIL if it never was, UNKNOWN when only a self-declared timestamp predates a revocation (backdating cannot be excluded) or the history is inconsistent with the live state, and UNAVAILABLE when history cannot be read.

Identity reports

verify-identity.ts
const report = await agentid.verifyIdentity("42", {
  expectedOwner: "0xOwnerYouExpect", // optional: FAIL if the onchain owner differs
  signer: "0xSigningKey",            // optional: makes "Signing key ownership proven" required
});
terminal
curl -X POST https://agentid-beryl.vercel.app/api/v1/verify/identity \
  -H 'content-type: application/json' \
  -d '{"chainId":46630,"registry":"0x8004A818BFB912233c491871b3d84c89A494BD9e","agentId":"42","checkEndpoints":true}'

# or by profile URL: {"url": "/agent/46630/0x8004A818BFB912233c491871b3d84c89A494BD9e/42"}
CheckRequiredWhat it establishes
Network matches identitynetwork.chainyesThe RPC's eth_chainId equals the requested chain.
Registry contract supportedregistry.supportedyesThe address is the configured ERC-8004 registry for the chain and has code.
Registry implementation matches verified ERC-8004 buildregistry.implementationnoEIP-1967 implementation code hash equals the verified official ERC-8004 build.
Identity registered onchainidentity.registeredyesownerOf(agentId) succeeds — FAIL with “Agent #N does not exist in this registry”.
Owner address verified against registryidentity.owneryesThe current owner is read; FAIL if you passed expectedOwner and it differs.
Registration metadata URI presentmetadata.urinoAn agentURI is set (WARN when empty).
Metadata integrity verifiedmetadata.integritynoPASS only for files stored onchain (data: URI); https/IPFS are NOT CHECKED (no onchain hash).
Registration file references this identitymetadata.registration_refnoregistrations[] points back to this identity (WARN missing, FAIL other agent).
Signing key ownership provensigner.authorizedwith signerRequired when you pass signer: isAuthorized at the pinned block.
Endpoint reachableendpoint.reachablenoServer only, on request: https service endpoints answered through the SSRF-safe fetcher.
Endpoint domain verifiedendpoint.domainnoServer only, on request: /.well-known/agent-registration.json lists this identity.

The SDK reports endpoint checks as NOT CHECKED; the API runs them when checkEndpoints is true.

Signer reports

POST /api/v1/verify/signer with { chainId, signer } lists the agents an address is or was authorized for (from the index), each confirmed with a live isAuthorized call.

The same reports are available in the browser at Verify, without an account or a wallet.