Git Product home page Git Product logo

arieswebapp's Introduction

AriesWebApp

This repository contain the code simulating three Self-Sovereign Identity Agents. Every agent has been developped using Aries .NET framework (https://github.com/hyperledger/aries-framework-dotnet). This project was made as a proof of concept, each agent has a specific role following standards of SSI as described by the Verifiable Claims Working Group of the W3C (https://w3c.github.io/vc-data-model)

Setup a demo

The following instructions work for Ubuntu-18.04 distribution

Clone this repo

$git clone https://github.com/Yoroitchi/AriesWebApp.git

Move into the cloned file, you should have the following arborescence

./AriesWebApp
|____________AriesWebApp
|____________AriesWebApp.sln
|____________README.md
  1. Be sure to have docker and docker-compose installed
  2. Clone indy-sdk (https://github.com/hyperledger/indy-sdk) on your machine
$git clone https://github.com/hyperledger/indy-sdk
  1. Add 192.168.56.101 to one of your network interface
$sudo ip addr add 192.168.56.101/24 dev [your interface]
  1. build a test pool compatible with the agents, as indicated in indy-sdk repository. A pool genesis transaction file is already in the agents, you need to build the pool on the ip 192.168.56.101. First go into the cloned file, then build and run the pool
$cd indy-sdk
$docker build --build-arg pool_ip=192.168.56.101 -f ci/indy-pool.dockerfile -t indy_pool .
$docker run -itd -p 192.168.56.101:9701-9708:9701-9708 indy_pool
  1. Install indy-cli as indicated in indy-sdk repo
$sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88
$sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb (xenial|bionic) {release channel}"
$sudo apt-get update
$sudo apt-get install -y {library}
  • Replace (xenial | bionic) with bionic for Ubuntu 18.04
  • {release channel} must be replaced with master, rc or stable
    • choose stable
  • {library} must be replaced with libindy, libnullpay, libvcx or indy-cli
    • choose indy-cli
    • More details on other libraries in indy-sdk repo
  1. Using indy-cli, create a pool named Aries with the pool genesis transaction
  • You can find it in the running pool container at /var/lib/indy/sandbox/pool_genesis_transaction
  • Or you can use the one in the project ./AriesWebApp/AriesTest.txn
  #Run indy-cli
  $indy-cli
  #Create the pool
  indy>pool create Aries gen_txn_file=pool_genesis_transaction
  1. From now you will build a docker container for each agent. One branch is dedicated to each one
  #Checkout to branch 
  $git checkout Holder5000
  #Build the docker container
  $docker build -t holder -f ./AriesWebApp/docker/dockerfile .
  • Repeat with branches Issuer7000 and Verifier8000
  • Replace holder with issuer and verifier according to your current branch
  1. Run every container on the host docker network
docker run -it -p {port}:{port} --network=host {actor}
  • {port} must match with the branch, i.e. for Verifier8000, {port}=8000
  • {actor} is the container's tag
  • Add the option --rm if you want to delete the container after stoping the server
  1. Open a browser with 3 tabs, in each tab go to http://127.0.0.1:{port}
  • Or click on the link Now listening on: http://127.0.0.1:
  1. Play with agents

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.