Sign inSign up

zignartech/did-api

By zignartech

•Updated about 4 years ago

Image
0

202

zignartech/did-api repository overview

⁠IOTA Identity API Tutorial

Youtube: IOTA - Decentralized Identities API - Explained⁠

⁠Problem Description

In this tutorial you will utilize the Rust Account of the IOTA Identity framework⁠ to solve the problem described below. identity.rs⁠:

Alice recently graduated from the University of Oslo with a Bachelor of Computer Science. Now she wants to apply for a remote job at the IOTA Foundation and needs to digitally prove the existence and validity of her degree. What she needs is an immutable and verifiable credential, which has been approved by both the University of Oslo and herself, before presenting it to her possible new employer.

⁠Setup with docker-compose

If you are developing something new using this code, we recommend using the docker-compose.dev.yml

  1. Clone this repository => https://github.com/zignartech/did-api⁠
  2. Then, run this
docker-compose -f docker-compose.dev.yml up --build -d

If you just want to test and use it, use the docker-compose.yml

  1. Crea the .env file
HOST_API='0.0.0.0'
PORT_API='8080'
PRIMARY_NODE_HORNET='https://chrysalis-nodes.iota.org'
PRIMARY_POW_NODE_HORNET='https://chrysalis-nodes.iota.org'
HOST_CORS='http://localhost'
  1. Create the docker-compose.yml file
  2. Put this content
version: '3.3'

services:

  did-api:
    container_name: did-api
    image: zignartech/did-api:latest
    restart: unless-stopped
    ports:
      - "8080:8080"
    volumes:
      - ./accounts_stronghold/:/opt/did-api/accounts_stronghold/
      - ./.env/:/opt/did-api/.env
  1. Then, run this
docker-compose up -d
⁠Roles

As described here⁠, IOTA Identity builds on the W3C's proposed standards for a digital identity framework and thus is based on three roles:

  • Holder (Alice)
  • Issuer (University of Oslo)
  • Verifier (IOTA Foundation)

more info -> https://github.com/zignartech/did-api⁠

Tag summary

Content type

Image

Digest

sha256:0306d5657…

Size

71.1 MB

Last updated

about 4 years ago

docker pull zignartech/did-api