Code Monkey home page Code Monkey logo

blockchain_capstone_indy's Introduction

Indy-API

cd start_docker
docker build -t client_docker .

docker images # 제대로 이미지가 만들어 졌는지 확인

sh ./client_start.sh "docker_image"

docker ps # 도커 컨테이너가 제대로 실행이 되었는지 확인

did 발급

sh ./sh_generate_did.sh "CONTAINER_ID 또는 NAME" "Wallet ID" "Wallet Verkey"   # 도커 컨테이너에 접근하여 원격으로 DID를 발급받고 해당 결과를 텍스트 파일로 리턴
  • did를 발급받기 위한 sh 스크립트 파일
  • api.sh --> sh_generate_did.sh 파일명 변경
  • json형태로 로컬에 복사됨 (경로는 /home/deploy/data.json)

did 재발급 (가져오기)

sh ./sh_get_did.sh "CONTAINER_ID 또는 NAME" "Wallet ID" "Wallet Verkey"
  • did를 가져오기 위한 sh 스크립트 파일
  • json형태로 로컬에 복사됨 (경로는 /home/deploy/student_did.json)
  • json을 확인하면 "did" 키를 사용하여 value 받아오기

attrib transaction 발생

sh ./sh_generate_attrib.sh "CONTAINER_ID 또는 NAME" "Wallet ID" "Wallet Verkey" "User DID" "Building" "Year" "Month" "Day"
  • 건물 출입 기록을 하기 위한 스크립트 파일
  • 실행 완료 후 저장되는 파일은 없음

attrib transaction 조회

sh ./sh_get_attrib.sh "CONTAINER_ID 또는 NAME" "Wallet ID" "Wallet Verkey" "User DID" "Year" "Month" "Day"
  • 출입기록을 조회하기 위한 스크립트 파일
  • 실행완료 후 json형태로 로컬에 저장 (경로는 /home/deploy/attrib.json)

Dockerfile 수정

  • 기존 코드와 모두 동일하고, get_did.py 파일 ADD 커맨드 추가 (오류가 있다면 파일명 오류)

blockchain_capstone_indy's People

Contributors

beenee010 avatar gyu0710 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.