Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
feat!: update ProofSystemCompiler methods to take &Circuit (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Feb 21, 2023
1 parent 150b79c commit af56ca9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions acvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,18 @@ pub trait ProofSystemCompiler {
) -> bool;

/// Returns the number of gates in a circuit
fn get_exact_circuit_size(&self, circuit: Circuit) -> u32;
fn get_exact_circuit_size(&self, circuit: &Circuit) -> u32;

/// Generates a proving and verification key given the circuit description
/// These keys can then be used to construct a proof and for its verification
fn preprocess(&self, circuit: Circuit) -> (Vec<u8>, Vec<u8>);
fn preprocess(&self, circuit: &Circuit) -> (Vec<u8>, Vec<u8>);

/// Creates a Proof given the circuit description, the initial witness values, and the proving key
/// It is important to note that the intermediate witnesses for black box functions will not generated
/// This is the responsibility of the proof system.
fn prove_with_pk(
&self,
circuit: Circuit,
circuit: &Circuit,
witness_values: BTreeMap<Witness, FieldElement>,
proving_key: Vec<u8>,
) -> Vec<u8>;
Expand All @@ -178,7 +178,7 @@ pub trait ProofSystemCompiler {
&self,
proof: &[u8],
public_inputs: Vec<FieldElement>,
circuit: Circuit,
circuit: &Circuit,
verification_key: Vec<u8>,
) -> bool;
}
Expand Down

0 comments on commit af56ca9

Please sign in to comment.