[−][src]Struct storage_proofs::circuit::zigzag::ZigZagCircuit
ZigZag DRG based Proof of Replication.
Fields
params
- parameters for the curvepublic_params
- ZigZagDrgPoRep public parameters.- 'layers' - A vector of Layers – each representing a DrgPoRep proof (see Layers type definition).
Methods
impl<'a, H: Hasher> ZigZagCircuit<'a, Bls12, H>
[src]
pub fn synthesize<CS>(
cs: CS,
params: &'a <Bls12 as JubjubEngine>::Params,
public_params: <ZigZagDrgPoRep<'a, H> as ProofScheme<'a>>::PublicParams,
layers: Vec<Option<(<DrgPoRep<'a, <ZigZagDrgPoRep<H> as LayersTrait>::Hasher, <ZigZagDrgPoRep<H> as LayersTrait>::Graph> as ProofScheme<'a>>::PublicInputs, <DrgPoRep<'a, <ZigZagDrgPoRep<H> as LayersTrait>::Hasher, <ZigZagDrgPoRep<H> as LayersTrait>::Graph> as ProofScheme<'a>>::Proof)>>,
tau: Option<Tau<<<ZigZagDrgPoRep<H> as LayersTrait>::Hasher as Hasher>::Domain>>,
comm_r_star: Option<H::Domain>
) -> Result<(), SynthesisError> where
CS: ConstraintSystem<Bls12>,
[src]
cs: CS,
params: &'a <Bls12 as JubjubEngine>::Params,
public_params: <ZigZagDrgPoRep<'a, H> as ProofScheme<'a>>::PublicParams,
layers: Vec<Option<(<DrgPoRep<'a, <ZigZagDrgPoRep<H> as LayersTrait>::Hasher, <ZigZagDrgPoRep<H> as LayersTrait>::Graph> as ProofScheme<'a>>::PublicInputs, <DrgPoRep<'a, <ZigZagDrgPoRep<H> as LayersTrait>::Hasher, <ZigZagDrgPoRep<H> as LayersTrait>::Graph> as ProofScheme<'a>>::Proof)>>,
tau: Option<Tau<<<ZigZagDrgPoRep<H> as LayersTrait>::Hasher as Hasher>::Domain>>,
comm_r_star: Option<H::Domain>
) -> Result<(), SynthesisError> where
CS: ConstraintSystem<Bls12>,
Trait Implementations
impl<'a, E: JubjubEngine, H: Hasher> CircuitComponent for ZigZagCircuit<'a, E, H>
[src]
type ComponentPrivateInputs = ()
impl<'a, H: 'static + Hasher> CompoundProof<'a, Bls12, ZigZagDrgPoRep<'a, H>, ZigZagCircuit<'a, Bls12, H>> for ZigZagCompound
[src]
fn generate_public_inputs(
pub_in: &<ZigZagDrgPoRep<H> as ProofScheme>::PublicInputs,
pub_params: &<ZigZagDrgPoRep<H> as ProofScheme>::PublicParams,
k: Option<usize>
) -> Vec<Fr>
[src]
pub_in: &<ZigZagDrgPoRep<H> as ProofScheme>::PublicInputs,
pub_params: &<ZigZagDrgPoRep<H> as ProofScheme>::PublicParams,
k: Option<usize>
) -> Vec<Fr>
fn circuit<'b>(
public_inputs: &'b <ZigZagDrgPoRep<H> as ProofScheme>::PublicInputs,
_component_private_inputs: <ZigZagCircuit<'a, Bls12, H> as CircuitComponent>::ComponentPrivateInputs,
vanilla_proof: &'b <ZigZagDrgPoRep<H> as ProofScheme>::Proof,
public_params: &'b <ZigZagDrgPoRep<H> as ProofScheme>::PublicParams,
engine_params: &'a <Bls12 as JubjubEngine>::Params
) -> ZigZagCircuit<'a, Bls12, H>
[src]
public_inputs: &'b <ZigZagDrgPoRep<H> as ProofScheme>::PublicInputs,
_component_private_inputs: <ZigZagCircuit<'a, Bls12, H> as CircuitComponent>::ComponentPrivateInputs,
vanilla_proof: &'b <ZigZagDrgPoRep<H> as ProofScheme>::Proof,
public_params: &'b <ZigZagDrgPoRep<H> as ProofScheme>::PublicParams,
engine_params: &'a <Bls12 as JubjubEngine>::Params
) -> ZigZagCircuit<'a, Bls12, H>
fn blank_circuit(
public_params: &<ZigZagDrgPoRep<H> as ProofScheme>::PublicParams,
params: &'a <Bls12 as JubjubEngine>::Params
) -> ZigZagCircuit<'a, Bls12, H>
[src]
public_params: &<ZigZagDrgPoRep<H> as ProofScheme>::PublicParams,
params: &'a <Bls12 as JubjubEngine>::Params
) -> ZigZagCircuit<'a, Bls12, H>
fn setup<'b>(sp: &SetupParams<'a, 'b, E, S>) -> Result<PublicParams<'a, E, S>> where
E::Params: Sync,
[src]
E::Params: Sync,
fn partition_count(public_params: &PublicParams<'a, E, S>) -> usize
[src]
fn prove<'b>(
pub_params: &'b PublicParams<'a, E, S>,
pub_in: &'b S::PublicInputs,
priv_in: &'b S::PrivateInputs,
groth_params: &'b Parameters<E>
) -> Result<MultiProof<'b, E>> where
E::Params: Sync,
[src]
pub_params: &'b PublicParams<'a, E, S>,
pub_in: &'b S::PublicInputs,
priv_in: &'b S::PrivateInputs,
groth_params: &'b Parameters<E>
) -> Result<MultiProof<'b, E>> where
E::Params: Sync,
prove is equivalent to ProofScheme::prove.
fn verify(
public_params: &PublicParams<'a, E, S>,
public_inputs: &S::PublicInputs,
multi_proof: &MultiProof<E>,
requirements: &S::Requirements
) -> Result<bool>
[src]
public_params: &PublicParams<'a, E, S>,
public_inputs: &S::PublicInputs,
multi_proof: &MultiProof<E>,
requirements: &S::Requirements
) -> Result<bool>
fn circuit_proof<'b>(
pub_in: &S::PublicInputs,
vanilla_proof: &S::Proof,
pub_params: &'b S::PublicParams,
params: &'a E::Params,
groth_params: &Parameters<E>
) -> Result<Proof<E>>
[src]
pub_in: &S::PublicInputs,
vanilla_proof: &S::Proof,
pub_params: &'b S::PublicParams,
params: &'a E::Params,
groth_params: &Parameters<E>
) -> Result<Proof<E>>
circuit_proof creates and synthesizes a circuit from concrete params/inputs, then generates a groth proof from it. It returns a groth proof. circuit_proof is used internally and should neither be called nor implemented outside of default trait methods. Read more
fn groth_params(
public_params: &S::PublicParams,
engine_params: &'a E::Params
) -> Result<Parameters<E>>
[src]
public_params: &S::PublicParams,
engine_params: &'a E::Params
) -> Result<Parameters<E>>
fn verifying_key(
public_params: &S::PublicParams,
engine_params: &'a E::Params
) -> Result<VerifyingKey<E>>
[src]
public_params: &S::PublicParams,
engine_params: &'a E::Params
) -> Result<VerifyingKey<E>>
fn circuit_for_test(
public_parameters: &PublicParams<'a, E, S>,
public_inputs: &S::PublicInputs,
private_inputs: &S::PrivateInputs
) -> (C, Vec<E::Fr>)
[src]
public_parameters: &PublicParams<'a, E, S>,
public_inputs: &S::PublicInputs,
private_inputs: &S::PrivateInputs
) -> (C, Vec<E::Fr>)
impl<'a, H: Hasher> Circuit<Bls12> for ZigZagCircuit<'a, Bls12, H>
[src]
fn synthesize<CS: ConstraintSystem<Bls12>>(
self,
cs: &mut CS
) -> Result<(), SynthesisError>
[src]
self,
cs: &mut CS
) -> Result<(), SynthesisError>
Auto Trait Implementations
impl<'a, E, H> Send for ZigZagCircuit<'a, E, H> where
E: Send,
<H as Hasher>::Domain: Send,
<E as JubjubEngine>::Params: Sync,
E: Send,
<H as Hasher>::Domain: Send,
<E as JubjubEngine>::Params: Sync,
impl<'a, E, H> Unpin for ZigZagCircuit<'a, E, H> where
E: Unpin,
H: Unpin,
<H as Hasher>::Domain: Unpin,
E: Unpin,
H: Unpin,
<H as Hasher>::Domain: Unpin,
impl<'a, E, H> Sync for ZigZagCircuit<'a, E, H> where
E: Sync,
<H as Hasher>::Domain: Sync,
<E as JubjubEngine>::Params: Sync,
E: Sync,
<H as Hasher>::Domain: Sync,
<E as JubjubEngine>::Params: Sync,
impl<'a, E, H> UnwindSafe for ZigZagCircuit<'a, E, H> where
E: UnwindSafe,
H: UnwindSafe,
<H as Hasher>::Domain: UnwindSafe,
<E as JubjubEngine>::Params: RefUnwindSafe,
E: UnwindSafe,
H: UnwindSafe,
<H as Hasher>::Domain: UnwindSafe,
<E as JubjubEngine>::Params: RefUnwindSafe,
impl<'a, E, H> RefUnwindSafe for ZigZagCircuit<'a, E, H> where
E: RefUnwindSafe,
H: RefUnwindSafe,
<H as Hasher>::Domain: RefUnwindSafe,
<E as JubjubEngine>::Params: RefUnwindSafe,
E: RefUnwindSafe,
H: RefUnwindSafe,
<H as Hasher>::Domain: RefUnwindSafe,
<E as JubjubEngine>::Params: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,