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.
docker build -t verification-service .
docker run -it --rm -p 4000:4000 verification-service
docker run --rm -p 4000:4000 -e LOG_LEVEL=trace verification-service | node_modules/.bin/pino-pretty
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]
- Command
npx tsc && node dist/index.js | node_modules/.bin/pino-pretty