A VC Issuer API library for use with Bedrock applications.
- Verifiable Credentials HTTP API v0.3 specification.
- Supports
RevocationList2020Status
type.
TBD
- Node.js 18+ is required.
To install via NPM:
npm install --save @bedrock/vc-status
To install locally (for development):
git clone https://github.com/digitalbazaar/bedrock-vc-status.git
cd bedrock-vc-status
npm install
In lib/index.js
:
import '@bedrock/vc-status';
Note: The use of bedrock-web-vc-status
client is recommended,
to create instances.
This module exposes the following API endpoints.
Example request:
{
"presentation": {
"type": "VerifiablePresentation",
"holder": "<account controller's DID>",
"proof": {
"challenge": "<challenge is required>",
"type": "...",
"proofPurpose": "authentication",
"created": "...",
"verificationMethod": "<key id>",
"proofValue": "..."
}
}
}
Authorization
header is required.
Example request:
{
"credential": {
}
}
Example response:
{
"verifiableCredential": {
}
}
Example request:
{
"credential": {
},
"options": {
"proofPurpose": "assertionMethod",
"assertionMethod": "<key id>",
"verificationMethod": "<key id>",
"credentialStatus": {
"type": "RevocationList2020Status"
}
}
}
Example request:
{
"credentialId": "...",
"credentialStatus": {
"type": "RevocationList2020Status"
}
}
HTTP 200 OK
Uses either bedrock-passport
authentication, or an Authorization
header bearer token.
Example request:
{
"profileAgent": {
}
}
Example response:
HTTP 204 No Content
No authz required.
See the contribute file!
PRs accepted.
If editing the Readme, please conform to the standard-readme specification.
Commercial support for this library is available upon request from Digital Bazaar: [email protected]
Bedrock Non-Commercial License v1.0 © Digital Bazaar