The zero knowledge proof system used in Delta.
-
Docker
-
docker-compose(optional)
-
nodejs && yarn
-
npm install -g snarkjs@latest
-
wget https://github.com/iden3/circom/releases/download/v2.0.6/circom-linux-amd64 /usr/local/bin/circom
chmod +x /usr/local/bin/circom
The user should provide the value of
${input_size}
, which is the feature dimension of the datasetAll of the setup files will be generated under directory
circuits/main/${input_size}
docker run --rm -it --name delta-zk-setup -v ${PWD}/circuits/main:/app/circuits/main deltampc/delta-zk:dev yarn setup ${input_size}
download snarkjs Ptau file
wget https://hermez.s3-eu-west-1.amazonaws.com/powersOfTau28_hez_final_20.ptau ./ptau/pot_final.ptau
yarn install && yarn setup ${input_size}
docker build -t deltampc/delta-zk:dev .
docker pull deltampc/delta-zk:dev
docker run --name delta-zk -v ${PWD}/circuits/main:/app/circuits/main -p 4500:4500 -d deltampc/delta-zk:dev
or
docker compose up -d
yarn server