Skip to content

A very simplified demonstration of Zero Knowledge Proof using client-server model, implemented in Rust. 🦀

Notifications You must be signed in to change notification settings

suren-src/zkp-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zkp-rs

A very simplified demonstration of Zero Knowledge Proof using client-server model, implemented in Rust.

CI Build and Tests build-and-push-zkp-container-images Publish Docs Integration Tests


Documentation

Generated from Cargo doc and published to github pages

By Crate:


Getting Started

1. Docker-compose

  • 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

2. Helm Chart deployment on a Kubernetes / Minikube cluster

# 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

3. Local using cargo run

# 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

Screenshots

1. Docker-Compose

Screenshot from 2022-04-18 17-59-01

2. Helm Chart install on a Kubernetes cluster

Screenshot from 2022-04-18 17-58-10

3. Local using Cargo run

Screenshot from 2022-04-18 17-22-00

About

A very simplified demonstration of Zero Knowledge Proof using client-server model, implemented in Rust. 🦀

Topics

Resources

Stars

Watchers

Forks

Packages