GithubHelp home page GithubHelp logo

the-hardforq / kyc-issuer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from roots-id/kyc-issuer

0.0 0.0 0.0 187 KB

kyc-issuer

License: Apache License 2.0

Python 59.18% Jupyter Notebook 40.53% Dockerfile 0.29%

kyc-issuer's Introduction

KYC Issuer (this document is WORK IN PROGRESS)

This Issuers implements the following protocols:

Significant libraries

DIDComm and Peer DID were implemented with the help of the following amazing libraries from SICPA:

Installation

python -m venv ./venv 
source ./venv/bin/activate
pip install requirements.txt

Mongo DB

This mediator use MongoDB as Data Base. You need to have it installed before running. One installaton option is with docker as:

docker pull mongo
docker run --name mongo_example -d mongo

Envirnomental varables

The following environmental variables are needed. Change the values as your need:

export DB_URL=mongodb://localhost:27017
export PUBLIC_URL=http://127.0.0.1:8000
export ROTATE_OOB=0  // rotate OOB at startup if set
export MONGODB_USER={MongoDB username}
export MONGODB_PASSWORD={MongoDB password}
export WOLFRAM_ALPHA_API_ID=ZZZZZZ // only for basicmessage demo (https://www.wolframalpha.com)
export DATASEERS_API_KEY={DataSeers API KEY}
export PRISM_SDK_PASSWORD="ghp_..." // only if issuer is did:prism
export ATALA_PRISM_JARS="<working_dir>/prism-cli-v1.4.1/lib" // only if issuer is did:prism

Runing the agent

uvicorn main:app --reload --host 0.0.0.0

Build docker

docker build -f ./Dockerfile .  -t kyc-issuer
docker run -p 8000:8000 kyc-issuer

ATALA Prism Credential Issuer

In order to issue Prism Credentials you need Java 11 and download Prism SDK (need a Prism SDK password from IOG). This agent use JPype as a wrapper to access Java classes from Python.

1- Export your Prism SDK Password: export PRISM_SDK_PASSWORD="ghp_..."

2- Download anx extract the JVM SDK

curl "https://maven.pkg.github.com/input-output-hk/atala-prism-sdk/io/iohk/atala/prism-cli/v1.4.1/prism-cli-v1.4.1.zip" -H "Authorization: Bearer ${PRISM_SDK_PASSWORD}" -L -O
unzip prism-cli-v1.4.1.zip

3- Export JAVA_HOME and ATALA_PRISM_JARS as follows:

export JAVA_HOME=<java_home_directory>
export ATALA_PRISM_JARS="<working_dir>/prism-cli-v1.4.1/lib"

4- Export Prism Issuer switch

export PRISM_ISSUER=1

kyc-issuer's People

Contributors

rodolfomiranda 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.