Rename to "Input"/"InputMap"

This commit is contained in:
Sean Bowe
2017-04-04 14:24:49 -06:00
parent c9fbf490dc
commit d228257da6
3 changed files with 13 additions and 13 deletions

View File

@@ -118,14 +118,14 @@ impl<'a, E: Engine> LinearCombination<'a, E> {
}
pub trait Circuit<E: Engine> {
type WitnessMap: Witness<E>;
type InputMap: Input<E>;
/// Synthesize the circuit into a rank-1 quadratic constraint system
#[must_use]
fn synthesize<CS: ConstraintSystem<E>>(self, engine: &E, cs: &mut CS) -> Self::WitnessMap;
fn synthesize<CS: ConstraintSystem<E>>(self, engine: &E, cs: &mut CS) -> Self::InputMap;
}
pub trait Witness<E: Engine> {
pub trait Input<E: Engine> {
/// Synthesize the circuit, except with additional access to public input
/// variables
fn synthesize<CS: PublicConstraintSystem<E>>(self, engine: &E, cs: &mut CS);