Issue a W3C VC Data Model 2.0 credential with a Data Integrity proof using ECDSA

domain: w3.org · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Construct the credential JSON-LD document with the required fields: @context including https://www.w3.org/ns/credentials/v2, type including 'VerifiableCredential', issuer, validFrom, credentialSubject
  2. Generate an ECDSA P-256 key pair for the issuer; publish the public key as a verification method in the issuer's DID document under an assertionMethod relationship
  3. Produce the proof using the ecdsa-rdfc-2022 or ecdsa-jcs-2022 cryptosuite: canonicalize the document (RDFC-1.0 for rdfc variant), hash with SHA-256, sign with ECDSA, and base58btc-encode the proofValue
  4. Attach the proof object to the credential with type 'DataIntegrityProof', cryptosuite, created, verificationMethod (DID URL), proofPurpose 'assertionMethod'
  5. For verification, resolve the DID, fetch the verification method's public key, canonicalize the credential minus the proof, recompute the hash, and verify the ECDSA signature
  6. Validate the credential's validFrom/validUntil dates and optionally check the credentialStatus using BitstringStatusList 2021 or the newer status mechanism

Known gotchas

Related routes

Issue and verify a W3C Verifiable Credential using the VC Data Model 2.0
w3.org · 5 steps · unrated
Issue a W3C Verifiable Credential for a learning achievement using the VC Data Model 2.0 with an education-specific achievement type
w3.org · 6 steps · unrated
Implement agent identity verification using W3C Verifiable Credentials and Decentralized Identifiers so merchants can cryptographically authenticate an agent's mandate and principal before accepting payment
w3.org/TR/vc-data-model · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans