-
Notifications
You must be signed in to change notification settings - Fork 370
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
feat: add groth16 #1313
feat: add groth16 #1313
Conversation
d88118e
to
d1e829c
Compare
@@ -1,8 +1,8 @@ | |||
# Building PLONK Artifacts | |||
# Building circuit Artifacts |
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.
nit: circuit -> Circuit
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.
fixed
crates/prover/src/types.rs
Outdated
pub struct SP1Groth16Bn254ProofData(pub Groth16Bn254Proof); | ||
|
||
#[derive(Serialize, Deserialize, Clone)] | ||
pub enum SP1ProofData { |
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.
nit: SP1Bn254ProofData
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.
SP1ProofData is a bit too general.
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.
fixed
crates/prover/src/types.rs
Outdated
} | ||
|
||
impl SP1ProofData { | ||
pub fn get_proof_system(&self) -> &str { |
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.
nit: can you use an enum here
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.
fixed
Adds Groth16 to the circuits artifacts generated, and supports generating and verifying proofs for it.
Notes:
~/.sp1/circuits/plonk_bn254/<version>/
, they are now stored in~/.sp1/circuits/<version>/
, and the full output looks like: