Agent Name Service (ANS) — Overview & Integration
ANS provides verifiable discovery for agents using human-readable names and signed “agent cards”.
Resolve
GET https://ans.veritrust.vc/resolve?name=<logical-name>
Response shape
{
"card": { /* agent metadata */ },
"jws": "",
"kid": "did:web:veritrust.vc#ans-key-1"
}
Verify a card (Node, jose)
// Pseudocode: fetch, then verify JWS with did:web public key
const r = await fetch('https://ans.veritrust.vc/resolve?name=ans.veritrust');
const { jws, card, kid } = await r.json();
const did = await (await fetch('https://veritrust.vc/.well-known/did.json')).json();
const vm = did.verificationMethod.find(v => v.id === kid);
// importJWK(vm.publicKeyJwk, 'EdDSA' or 'ES256'); compactVerify(jws, key)
Schema
JSON Schema for cards: ans-card v1