5.2.0 • Published 2 years ago

bedrock-vc-verifier v5.2.0

Weekly downloads
9
License
-
Repository
github
Last release
2 years ago

Bedrock VC Verifier API module (bedrock-vc-verifier)

Build Status NPM Version

A VC Verifier API library for use with Bedrock applications.

Table of Contents

Background

Security

TBD

Install

  • Node.js 12+ is required.

NPM

To install via NPM:

npm install --save bedrock-vc-verifier

Development

To install locally (for development):

git clone https://github.com/digitalbazaar/bedrock-vc-verifier.git
cd bedrock-vc-verifier
npm install

Usage

In lib/index.js (or main.js, as appropriate):

require('bedrock-vc-verifier');

Verifier HTTP API

This module exposes the following API endpoints.

Verify Presentation - POST /vc/verify

Example request:

{
  "presentation": {},
  "challenge": "...",
  "domain": "issuer.exmaple.com"
}

Verify Credentials - POST /verifier/credentials

Alias: /instances/:instanceId/credentials/verify

Optionally performs status checks using the vc-revocation-list or vc-status-list library.

Example request:

{
  "verifiableCredential": {},
  "options": {
    "checks": ["proof", "credentialStatus"]
  }
}

Verify Presentations - POST /verifier/presentations

Alias: /instances/:instanceId/presentations/verify

Optionally performs status checks using the vc-revocation-list or vc-status-list library.

Example request:

{
  "verifiablePresentation": {},
  "options": {
    "challenge": "...",
    "checks": ["proof", "credentialStatus"],
    "domain": "issuer.exmaple.com"
  }
}

Contribute

See the contribute file!

PRs accepted.

If editing the Readme, please conform to the standard-readme specification.

Commercial Support

Commercial support for this library is available upon request from Digital Bazaar: support@digitalbazaar.com

License

Bedrock Non-Commercial License v1.0 © Digital Bazaar

5.2.0

2 years ago

5.1.0

2 years ago

5.0.0

2 years ago

3.1.0

2 years ago

4.0.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.3.0

2 years ago

2.2.0

2 years ago

2.1.0

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.2.0

3 years ago

1.1.0

4 years ago

1.0.0

4 years ago