A very simplified demonstration of Zero Knowledge Proof using client-server model, implemented in Rust.
Generated from Cargo doc
and published to github pages
By Crate:
-
Using the latest published images from ghcr.io (quick run)
docker-compose -f docker-compose.prebuilt.yml pull && docker-compose -f docker-compose.prebuilt.yml up
-
Or to build and Run from source
# clone this repo, and then docker-compose up
# clone this repo
# package the chart
cd _charts
helm package zkp-rs
# Set env vars
export ZKP_USERNAME=helm-demo-user
export ZKP_SECRET=15
# install
helm install zkp-rs zkp-rs-0.1.0.tgz --set username=$ZKP_USERNAME --set secret=$ZKP_SECRET --namespace=zkp-rs-demo --create-namespace
# verify both the server and client are running
kubectl get all -n zkp-rs-demo
# check logs
kubectl logs deploy/zkp-client-deploy --follow -n zkp-rs-demo
# clone this repo
# Run server
cargo run --bin zkp-server
# And then from another terminal / pane,
# set env variables. for e.g,
export ZKP_USERNAME=demouser
export ZKP_SECRET=10
# Run client
cargo run --bin zkp-client