Skip to main content
Version: v4

Issue your ECS Service credential

The credential that says what your service is. The ECS Service schema is open to issuers, so your corporation creates its own issuer accreditation and the agent issues the credential to itself; no validator is involved.

Goal​

An active Issuer accreditation on the ECS Service schema for your agent's DID, and the Service credential published in its DID Document.

Prerequisites​

  • The Organization or Persona credential of the previous guide, or a parent service that will issue the Service credential instead (child services).
  • Service claims set in the agent's configuration: name, type, description, minimum age, logo, terms and privacy URIs.

Steps​

1. Self-create the issuer accreditation​

The agent can only issue for an accreditation that names its account as VS operator. In the frontend, join the Issuers folder of the Service schema's participant tree and, under Advanced: VS operator delegation, name the agent's account with the session message (Join an ecosystem). From the command line, veranad tx pp self-create-participant with the role issuer, the ECS ecosystem's root participant on the Service schema as validator, the agent's DID, --corporation and the --vs-operator flags: see Let the agent pay with corporation funds.

2. The agent issues to itself​

When the accreditation becomes active the agent composes the Service claims from its configuration, validates them against the schema, signs the credential, anchors its digest on the registry through a participant session, and publishes it as a linked presentation. Watch the admin log, or the DID Document.

Verify​

curl -s https://agent.example.com/.well-known/did.json | jq '.service[] | select(.id|endswith("service-vtc-vp")) | .serviceEndpoint'
curl -s <that endpoint> | jq '.verifiableCredential[0].credentialSubject'

The claims are yours. The indexer now resolves the DID as trusted: run the quickstart check.

Troubleshooting​

SymptomCauseFix
No Service credential appearsA required service claim is missing; the agent logged whichSet it and restart
The accreditation is active but nothing happensThe entry does not name the agent's account as VS operatorRevoke it and self-create it again with the VS operator set
Issuance fails on the digest anchorThe agent's account has no balance and no fee grantFund it, or grant fees

Next​