Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate KZG prover with verifier circuit #66

Merged
merged 15 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
[submodule "verifier_circuit/o1js"]
path = verifier_circuit/o1js
url = https://github.com/lambdaclass/o1js.git
branch = kzg_prover
url = https://github.com/lambdaclass/o1js.git
branch = wasm_kzg_prover
[submodule "demo/eth_verifier/lib/forge-std"]
path = demo/eth_verifier/lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "kzg_prover/proof-systems"]
path = kzg_prover/proof-systems
url = https://github.com/lambdaclass/proof-systems.git
branch = wasm_kzg_prover
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ run:
@echo "Generating public input for verifier circuit..."
@cd public_input_gen && cargo r --release
@echo "Done!"
@echo "Proving verifier circuit..."
@echo "Creating circuit gates..."
@cd verifier_circuit && npm i && make
@echo "Done!"
@echo "Creating KZG proof..."
@cd kzg_prover && cargo r --release
@echo "Done!"
@echo "Verifying proof..."
@cd demo/eth_verifier
@anvil &
Expand All @@ -23,3 +26,4 @@ run:
--broadcast \
script/Deploy.s.sol:Deploy && \
@pkill anvil
@echo "Done!"
2 changes: 2 additions & 0 deletions kzg_prover/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target/
gates.json
Loading