Code Monkey home page Code Monkey logo

a-decentralised-digital-identity-architecture's Introduction

A Decentralised Digital Identity Architecture

This is a toy implementation of the architecture proposed by Geoff Goodell and Tomaso Aste in this paper.

Structure

A brief overview of the file structure of this project.

    .
    ├── ap
        ├── tests
            ├── tests_app_pytest.py  
        ├── app.py
        ├── Dockerfile            
    ├── cp
        ├── tests
            ├── tests_app_pytest.py  
        ├── app.py
        ├── Dockerfile
    ├── user
        ├── tests
            ├── tests_app_pytest.py  
        ├── app.py
        ├── Dockerfile
    ├── service
        ├── tests
            ├── tests_app_pytest.py  
        ├── app.py
        ├── Dockerfile
    ├── .env                
    ├── .gitignore    
    ├── requirements.txt
    ├── Dockerfile
    ├── docker-compose.yml
    └── README.md

Download

Use git to clone the project.

git clone https://github.com/HarryThomas17/A-Decentralised-Digital-Identity-Architecture.git

Setup

The project makes use of Docker, Docker Compose, and Hyperledger Composer, so if you do not already have them you can install them here:

  1. Install Docker
  2. Install Docker Compose
  3. Install Hyperledger Composer CLI (remove @19 from npm commands)

Building Dependencies

The project makes use of a base image with all dependencies installed on it. This is done to save time in subsequent builds. This base image can be built manually:

  1. Ensure you are in the project's root directory.
  2. Run the following docker build -t code_latest:latest . This builds the image from the dockerfile located in the project root.

Running

2 shell scripts are included to start and stop the project (bring up Hyperledger Fabric and Flask containers). To start the project, run ./start.sh. To stop the project, run ./stop.sh. After start.sh completes successfully, you can bring up and down the Flask containers only with docker-compose down and docker-compose up --build -d.

Sockets

The default configuration for the project is to have docker compose deploy all the containers locally on localhost/0.0.0.0. Additionally the endpoints for the specific entities are as follows:

Entity Directory Name Port
User ap 5000
Authentication Provider ap 5001
Cerfication Provider cp 5002
Service ap 5003
Ledger ledger 8080

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

a-decentralised-digital-identity-architecture's People

Contributors

oscar-king avatar harrythomas17 avatar gohchanb avatar

Stargazers

 avatar Michael Jelly avatar Neville Farrell avatar Chris Hicks avatar

Watchers

Satish avatar  avatar

Forkers

harrythomas17

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.