Skip to content
Merged
Changes from 1 commit
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
11 changes: 8 additions & 3 deletions snark-verifier-sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,17 @@ impl SnarkWitness {
}

pub trait CircuitExt<F: Field>: Circuit<F> {
/// Return the number of instances of the circuit.
/// Return the instances of the circuit.
/// This may depend on extra circuit parameters but NOT on private witnesses.
fn num_instance(&self) -> Vec<usize>;

fn instances(&self) -> Vec<Vec<F>>;

fn num_instance(&self) -> Vec<usize> {
self.instances()
.iter()
.map(|inst| inst.len())
.collect::<Vec<usize>>()
Comment thread
zemse marked this conversation as resolved.
Outdated
}

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