Skip to content

Commit

Permalink
add default CircuitExt impl
Browse files Browse the repository at this point in the history
  • Loading branch information
lispc committed Apr 10, 2023
1 parent ed1a740 commit a3d0a5a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions snark-verifier-sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,13 @@ impl SnarkWitness {
pub trait CircuitExt<F: Field>: Circuit<F> {
/// Return the number of instances of the circuit.
/// This may depend on extra circuit parameters but NOT on private witnesses.
fn num_instance(&self) -> Vec<usize>;
fn num_instance(&self) -> Vec<usize> {
vec![]
}

fn instances(&self) -> Vec<Vec<F>>;
fn instances(&self) -> Vec<Vec<F>> {
vec![]
}

fn accumulator_indices() -> Option<Vec<(usize, usize)>> {
None
Expand Down

0 comments on commit a3d0a5a

Please sign in to comment.