Heimdall is a SSI framework based on generic ZKPs.
- 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
- Install both
docker
anddocker-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
- Install both
docker
anddocker-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
- Run Mocha tests for Heimdalljs
cd heimdalljs && npm i && npm run test
- Run Mocha tests for Circom
cd circom && npm i && npm run test
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/*
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.