CX · Reference guidevc
PlaygroundDownloadsAboutv0.18.0-pre.1

vc

Verifiable credentials: portable, signed, attenuating delegations that carry authority between DIDs and verify offline (the §22.2 delegation transport, counterpart to did for identity). An issuer signs a credential conveying a claim to a subject; a verifier checks its signature, validity window, and non-revocation; a holder presents it to a verifier; and a verifier is TOLD which ids are revoked through opts.revoked — recording and folding a revocation journal is cx-platform/vc-revocation's.

vc:issue

[$vc:issue] -> element — Sign a credential conveying a claim (a §22.2 delegation) from an issuer DID and key to a subject DID.

vc:verify

[$vc:verify] -> element — Check a credential's signature, validity window, and non-revocation as of a given time, returning a [vc-verification status=…] element.

vc:valid

[$vc:valid] -> bool — Convenience boolean over verify: true iff the credential's signature, validity window, and non-revocation all hold as of the given time.

vc:present

[$vc:present] -> element — Package a verifiable credential for presentation to a verifier (holder proof-of-possession applied later).