-
Notifications
You must be signed in to change notification settings - Fork 119
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
Dependency refactor #110
Dependency refactor #110
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 nice work.
here's some comments:
plonk/src/circuit/*
should be moved tojf-relation
, those are not related to Plonk proof system, they are gadgets for plonk verifier (when you try to do proof recursion and prove that a Plonk proof is correct in circuit, therefore they belong with all the other gadgets)- within
jf-relation
:- no need to have
customized/
folder, - instead, put all gate impl (including
basic.rs
intorelation/src/gadgets/*
- merged
relation/src/customized/gates.rs
intorelation/src/gates.rs
- rename
relation/src/customized/mod.rs
tocustomized.rs
? (@chancharles92, @zhenfeizhang any better idea?) or we can also split them up and group them like arkwork or like plonky2 - gadgets moved from
plonk/
should be under/gadgets/transcript/
andgadgets/plonk_verifier/
, just likegadgets/ecc/
- no need to have
Currently, circuit implementation of plonk verifier depends on struct
Good suggestion. Will do. |
Good idea... now the |
Agree with @zhenfeizhang , I prefer the approach used by arkworks and plonky2 |
Ah, I see, then just keep them where there are. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like your reorg! great work! 🎉
Thank you for the big migration!
Some minor comments:
relation/gadgets/basic.rs
seems a bit strange, I would merge this file withrelation/circuit.rs
and call itrelation/constraint_system.rs
(which contains both thetrait Circuit
andstruct PlonkCircuit
) <-- I agree our usage of circuit/constraint_system/gadget/gates need to be re-checked later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! Only 1 minor comment
…circuit`. Removed unnecessary `test_apis` feature
Description
closes: #109
jf-rescue
crate, rescue hash function now resides injf-primitives/rescue
.jf-relation
.jf-relation
.transcript
andplonk-verifier
are now injf-plonk/circuit
.commitment
,el gamal
etc. remains injf-primitives/circuit
.jf-primitives/circuit/rescue
.par-utils
is moved tojf-utils
.jf-relation
depends onjf-utils
.jf-primitives
depends onjf-relation
andjf-utils
.jf-plonk
depends on all other crates.Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
Pending
section inCHANGELOG.md
Files changed
in the GitHub PR explorer