Skip to content

ZK-SNARK proof of the solution to a quadratic polynomial equation

Notifications You must be signed in to change notification settings

martinsander00/zk_snark_poly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZK-SNARK Polynomial Circuit

This Rust project implements a zk-SNARK using the Groth16 protocol to prove knowledge of a secret w that satisfies the polynomial equation:

x = w^4 + aw^3 + bw^2 + c*w + d

Requirements

  • Rust
  • Dependencies:
    [dependencies]
    rand = "0.4"
    bellman_ce = "0.7"

## Run the Project
1. Clone the repo
```bash
git clone https://github.com/your_username/zk_snark_poly.git
cd zk_snark_poly
  1. Build and run
cargo build
cargo run
  1. Example output
Proof is valid. Alice knows a valid 'w'.

About

ZK-SNARK proof of the solution to a quadratic polynomial equation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages