Git Product home page Git Product logo

rif-identity-services's Introduction

logo

rif-identity-services

Services enabling RIF Self-sovereign.

npm alerts

The project has different modules that run together form the RIF Identity main flow:

  1. Holder sets and stores declarative details in their Data Vault
  2. Holder requests a credential using credential requests service
  3. Issuer issues that credential using credential requests backoffice
  4. Holder retrieves the credential
  5. Holder stores it in the Data Vault
  6. Holder presents a QR code using the convey service
  7. Verifier validates presentation retrieving it from the convey service

Available servers

  • Issuer: can receive credential requests with an open HTTPS service and grant/deny them using a backoffice
  • Data vault: a user centric cloud like service. It allows users to pin files in IPFS, and memoize the content stored in a private dicitonary
  • Convey: enables to transport arbitrary data via HTTPS. It is used to present credentials via QR code

Setup

First install the dependencies

npm i
npm run setup

If you are willing to run only one service you can install only its dependencies browsing into packages/

Compile typescript modules

npm run build

Run tests

First, start an IPFS node

ipfs daemon

Note that tests expect IPFS to run in port 5001

Run the tests

npm test

Run package-specific tests

npm test:package --package rif-id-core

Start services

The services are found in ./services folder. To run the services please follow package specific instructions to set up .env files. You can opt for running each service individually or run the whole suite with Dockcer compose. To run each service individaully please reffer to service specific README

Using docker compose:

Setup

To use docker compose option, first you need to setup tha variable DOCKER_TAG. This will be the tag when creating the docker image. If no one is set, by default will take the TAG latest. For instance:

export DOCKER_TAG=latest

Setup the following .env variables. Look into each service section of this README to know how to complete them:

./data-vault/.env
./issuer/.env
./issuer/app/.env

Execute

First, build the image:

docker-compose build 

Execute as daemon

docker-compose up -d

Identity service will start using it's own network

docker network ls
1d8ec230c51e        rif-identity-services_default   bridge              local

rif-identity-services's People

Contributors

alejandrod-iov avatar dependabot[bot] avatar ida3m0n avatar ilanolkies avatar javiesses avatar jessgusclark avatar miltonwg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.