diff --git a/snark-verifier-sdk/src/lib.rs b/snark-verifier-sdk/src/lib.rs index da9d8db8..fe9395dd 100644 --- a/snark-verifier-sdk/src/lib.rs +++ b/snark-verifier-sdk/src/lib.rs @@ -102,12 +102,14 @@ impl SnarkWitness { } pub trait CircuitExt: Circuit { - /// 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; - fn instances(&self) -> Vec>; + fn num_instance(&self) -> Vec { + self.instances().iter().map(Vec::len).collect() + } + fn accumulator_indices() -> Option> { None }