Skip to content

ermolaev1337/z-commerce-heimdall

 
 

Repository files navigation

Heimdall

Heimdall is a SSI framework based on generic ZKPs.

heimdalljs

Install

  • Install nodejs(@v16.0.0) and npm (@7.10.0)
  • Go to heimdalljs
  • Install dependencies npm install
  • Link the package to the path sudo npm link
  • Heimdall is now available by the command heimdalljs

Docker

  • Install both docker and docker-compose
  • Build docker-compose build
  • Up docker-compose up
  • Jump inside the container docker exec -ti heimdall bash
  • Use heimdalljs as a container docker-compose run heimdall heimdalljs key -h

API Boostrap with Docker

  • Install both docker and docker-compose
  • Jump inside ./heimdalljs/test/restful
  • Create there a .env file
  • Copy content of the test.env file to the .env file
  • Get an auth token from GitHub (you need to have write access to https://github.com/ermolaev1337/test-revoc)
  • Put the token from GitHub as a var GITHUB_TOKEN in the .env file
  • Jump back ./heimdalljs
  • Build docker-compose build
  • Up docker-compose up
  • See the output files in the directory ./logs/ per docker service

Test

  • Run Mocha tests for Heimdalljs cd heimdalljs && npm i && npm run test
  • Run Mocha tests for Circom cd circom && npm i && npm run test

Usage

The files example-run.sh provide an example run for heimdalljs using the individual presentation types. Run and inspect the scripts. They are located in heimdalljs/test/*

Circom

The circuits of the presentations are located in the folder circom. These are not required for the usage of heimdalljs since their resulting ZKeys are stored in heimdalljs/zkp.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Circom 85.0%
  • JavaScript 14.2%
  • Other 0.8%