Skip to content

yepengding/verifiable-data-registry-server

Repository files navigation

Server-Based Verifiable Data Registry

A server-based implementation of verifiable data registry based on swift-express-graphql. It mainly uses Javascript Object Signing and Encryption (JOSE) for DID and derived functionalities.

Cryptographic Algorithm

Functionality Algorithm Curve
Authentication ES256 P-256
Assertion Method EdDSA Ed25519

Feature

  • Issue DIDs.
  • DID/Key persistence.
  • DID/Key resolving by REST and GraphQL.
  • Administration.

Quickstart

By Docker Compose

  1. Duplicate .env.example as .env and configure environment variables;
  2. Configure Dockerfile and docker-compose.yml;
  3. Compose and run containers.
docker compose up -d

By Docker

  1. Duplicate .env.example as .env and configure environment variables;
  2. Configure Dockerfile;
  3. Build Docker image
docker build -t vcs .
  1. Run in container
docker run -p <host_port>:<container_port> --name <container_name> -d vcs

Manually

  1. Install dependencies
yarn install
  1. Duplicate .env.example as .env and configure environment variables;

  2. Build project to dist;

npm run build
  1. Run project.
npm run start

Development

  • Run dev server
yarn dev

API

GraphQL

domain/graphql

REST

domain/api-docs


References