Verifiable-Credentials

The following credentials management functions are available:

  • list - list verifiable credentials

  • load - load the verifiable credential

  • delete - delete the verifiable credential

  • create - create a verifiable credential

  • present - create a verifiable presentation from the supplied credentials

  • verify - verify credential / presentation

  • import - import the verifiable credential

List credentials

The /v1/vc endpoint lists the available credentials.

curl -X 'GET' \
  'https://core.ssikit.walt.id/v1/vc' \
  -H 'accept: application/json'

E.g. List the available credentials.

curl -X 'GET' \
  'https://core.ssikit.walt.id/v1/vc' \
  -H 'accept: application/json'

Load credential

The /v1/vc/{id} endpoint loads a credential specified by:

  • id - path parameter (required) - the credential id

E.g. Load the credential having id = urn:uuid:d36986f1-3cc0-4156-b5a4-6d3deab84270.

Delete credential

The /v1/vc/{id} deletes a credential by:

  • id - path parameter (required) - the credential's id

E.g. Delete the credential with id = urn:uuid:d36986f1-3cc0-4156-b5a4-6d3deab84270.

Create credential

The /v1/vc/create endpoint creates a credential.

E.g. Create a credential from the UniveristyDegree template, having issuer = did:key:z6MkqmaCT2JqdUtLeKah7tEVfNXtDXtQyj4yxEgV11Y5CqUa and holder = did:key:z6MkkLmAVeM3P6B2LJ2xGrK1wVojCoephK4G9VrCcct42ADX.

Present credentials

The /v1/vc/present endpoint creates a verifiable presentation from the supplied credential. Only JSON-LD format is supported.

E.g. Create a verifiable presentation from the provided VeriafiableID credential for a holder with did = did:web:my.domain.

Verify credentials

The /v1/vc/verify endpoint verifies the supplied credential or presentation against the signature policy.

E.g. Verify a presentation.

Import credential

The /v1/vc/import endpoint imports a verifiable credential.

E.g. Import the UniversityDegree credential.

Last updated

Was this helpful?