Uploading the Credential Schema
ISSUER_BASE_URL=https://your-issuer.evdi.app
ISSUER_DID=did:web:your-issuer.evdi.app:8f3c... # your Issuer's DID
TOKEN=<your OIDC access token> # any valid OIDC access token (JWT); the tutorial reuses the admin token from the authentication stepStep 1 — Create the schema
{
"name": "KYCCredential",
"version": "1.0",
"description": "Know-Your-Customer verification credential.",
"formats": ["sd-jwt", "jwt-vc-json"],
"schema": {
"type": "object",
"properties": {
"age": { "type": "number" },
"first_name": { "type": "string" },
"last_name": { "type": "string" }
},
"required": ["age", "first_name", "last_name"]
},
"vct": "https://your-issuer.evdi.app/vct/kyc-credential",
"disclosureFrame": ["age", "first_name", "last_name"]
}Step 2 — Assign the schema to the Issuer
What you get: credential configuration IDs
Last updated