Skip to content

This service verifies JSON-LD BBS+ credentials sent via POST requests.

Notifications You must be signed in to change notification settings

IDunion/jsonld-bbs-verification-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This project is a server that verifies JSON-LD BBS+ credentials. The credential is sent via a POST request to the /w3c/verification endpoint. This endpoint is protected by a bearer token that can be configured via environment variables. The server uses the Mattr jsonld-signatures-bbs library to verify BBS+ credentials.

Run with Docker

  • docker build -t verification-service .
  • docker run -it --rm -p 4000:4000 verification-service

For Debugging

  • docker run --rm -p 4000:4000 -e LOG_LEVEL=trace verification-service | node_modules/.bin/pino-pretty

Configuration

  • PORT: The port the webserver binds to [default: 4000]
  • BEARER_TOKEN_SECRET: The bearer token required to access the api [default: secret]
  • LOG_LEVEL: Sets the log level [default: info]

Development

  • Command npx tsc && node dist/index.js | node_modules/.bin/pino-pretty

About

This service verifies JSON-LD BBS+ credentials sent via POST requests.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published