Struct storage_proofs_post::rational::RationalPoStCompound [−][src]
pub struct RationalPoStCompound<Tree> where
Tree: MerkleTreeTrait, { /* fields omitted */ }Trait Implementations
impl<C: Circuit<Bls12>, P: ParameterSetMetadata, Tree: MerkleTreeTrait> CacheableParameters<C, P> for RationalPoStCompound<Tree>[src]
impl<C: Circuit<Bls12>, P: ParameterSetMetadata, Tree: MerkleTreeTrait> CacheableParameters<C, P> for RationalPoStCompound<Tree>[src]fn cache_prefix() -> String[src]
pub fn cache_meta(pub_params: &P) -> CacheEntryMetadata[src]
pub fn cache_identifier(pub_params: &P) -> String[src]
pub fn get_param_metadata(
_circuit: C,
pub_params: &P
) -> Result<CacheEntryMetadata, Error>[src]
_circuit: C,
pub_params: &P
) -> Result<CacheEntryMetadata, Error>
pub fn get_groth_params<R>(
rng: Option<&mut R>,
circuit: C,
pub_params: &P
) -> Result<MappedParameters<Bls12>, Error> where
R: RngCore, [src]
rng: Option<&mut R>,
circuit: C,
pub_params: &P
) -> Result<MappedParameters<Bls12>, Error> where
R: RngCore,
pub fn get_verifying_key<R>(
rng: Option<&mut R>,
circuit: C,
pub_params: &P
) -> Result<VerifyingKey<Bls12>, Error> where
R: RngCore, [src]
rng: Option<&mut R>,
circuit: C,
pub_params: &P
) -> Result<VerifyingKey<Bls12>, Error> where
R: RngCore,
impl<'a, Tree: 'static + MerkleTreeTrait> CompoundProof<'a, RationalPoSt<'a, Tree>, RationalPoStCircuit<Tree>> for RationalPoStCompound<Tree> where
Tree: 'static + MerkleTreeTrait, [src]
impl<'a, Tree: 'static + MerkleTreeTrait> CompoundProof<'a, RationalPoSt<'a, Tree>, RationalPoStCircuit<Tree>> for RationalPoStCompound<Tree> where
Tree: 'static + MerkleTreeTrait, [src]fn generate_public_inputs(
pub_in: &<RationalPoSt<'a, Tree> as ProofScheme<'a>>::PublicInputs,
pub_params: &<RationalPoSt<'a, Tree> as ProofScheme<'a>>::PublicParams,
_partition_k: Option<usize>
) -> Result<Vec<Fr>>[src]
pub_in: &<RationalPoSt<'a, Tree> as ProofScheme<'a>>::PublicInputs,
pub_params: &<RationalPoSt<'a, Tree> as ProofScheme<'a>>::PublicParams,
_partition_k: Option<usize>
) -> Result<Vec<Fr>>
fn circuit(
pub_in: &<RationalPoSt<'a, Tree> as ProofScheme<'a>>::PublicInputs,
_priv_in: <RationalPoStCircuit<Tree> as CircuitComponent>::ComponentPrivateInputs,
vanilla_proof: &<RationalPoSt<'a, Tree> as ProofScheme<'a>>::Proof,
_pub_params: &<RationalPoSt<'a, Tree> as ProofScheme<'a>>::PublicParams,
_partition_k: Option<usize>
) -> Result<RationalPoStCircuit<Tree>>[src]
pub_in: &<RationalPoSt<'a, Tree> as ProofScheme<'a>>::PublicInputs,
_priv_in: <RationalPoStCircuit<Tree> as CircuitComponent>::ComponentPrivateInputs,
vanilla_proof: &<RationalPoSt<'a, Tree> as ProofScheme<'a>>::Proof,
_pub_params: &<RationalPoSt<'a, Tree> as ProofScheme<'a>>::PublicParams,
_partition_k: Option<usize>
) -> Result<RationalPoStCircuit<Tree>>
fn blank_circuit(
pub_params: &<RationalPoSt<'a, Tree> as ProofScheme<'a>>::PublicParams
) -> RationalPoStCircuit<Tree>[src]
pub_params: &<RationalPoSt<'a, Tree> as ProofScheme<'a>>::PublicParams
) -> RationalPoStCircuit<Tree>
pub fn setup(sp: &SetupParams<'a, S>) -> Result<PublicParams<'a, S>, Error>[src]
pub fn partition_count(public_params: &PublicParams<'a, S>) -> usize[src]
pub fn prove(
pub_params: &PublicParams<'a, S>,
pub_in: &<S as ProofScheme<'a>>::PublicInputs,
priv_in: &<S as ProofScheme<'a>>::PrivateInputs,
groth_params: &'b MappedParameters<Bls12>
) -> Result<MultiProof<'b>, Error>[src]
pub_params: &PublicParams<'a, S>,
pub_in: &<S as ProofScheme<'a>>::PublicInputs,
priv_in: &<S as ProofScheme<'a>>::PrivateInputs,
groth_params: &'b MappedParameters<Bls12>
) -> Result<MultiProof<'b>, Error>
pub fn prove_with_vanilla(
pub_params: &PublicParams<'a, S>,
pub_in: &<S as ProofScheme<'a>>::PublicInputs,
vanilla_proofs: Vec<<S as ProofScheme<'a>>::Proof, Global>,
groth_params: &'b MappedParameters<Bls12>
) -> Result<MultiProof<'b>, Error>[src]
pub_params: &PublicParams<'a, S>,
pub_in: &<S as ProofScheme<'a>>::PublicInputs,
vanilla_proofs: Vec<<S as ProofScheme<'a>>::Proof, Global>,
groth_params: &'b MappedParameters<Bls12>
) -> Result<MultiProof<'b>, Error>
pub fn verify(
public_params: &PublicParams<'a, S>,
public_inputs: &<S as ProofScheme<'a>>::PublicInputs,
multi_proof: &MultiProof<'b>,
requirements: &<S as ProofScheme<'a>>::Requirements
) -> Result<bool, Error>[src]
public_params: &PublicParams<'a, S>,
public_inputs: &<S as ProofScheme<'a>>::PublicInputs,
multi_proof: &MultiProof<'b>,
requirements: &<S as ProofScheme<'a>>::Requirements
) -> Result<bool, Error>
pub fn batch_verify(
public_params: &PublicParams<'a, S>,
public_inputs: &[<S as ProofScheme<'a>>::PublicInputs],
multi_proofs: &[MultiProof<'b>],
requirements: &<S as ProofScheme<'a>>::Requirements
) -> Result<bool, Error>[src]
public_params: &PublicParams<'a, S>,
public_inputs: &[<S as ProofScheme<'a>>::PublicInputs],
multi_proofs: &[MultiProof<'b>],
requirements: &<S as ProofScheme<'a>>::Requirements
) -> Result<bool, Error>
pub fn circuit_proofs(
pub_in: &<S as ProofScheme<'a>>::PublicInputs,
vanilla_proofs: Vec<<S as ProofScheme<'a>>::Proof, Global>,
pub_params: &<S as ProofScheme<'a>>::PublicParams,
groth_params: &MappedParameters<Bls12>,
priority: bool
) -> Result<Vec<Proof<Bls12>, Global>, Error>[src]
pub_in: &<S as ProofScheme<'a>>::PublicInputs,
vanilla_proofs: Vec<<S as ProofScheme<'a>>::Proof, Global>,
pub_params: &<S as ProofScheme<'a>>::PublicParams,
groth_params: &MappedParameters<Bls12>,
priority: bool
) -> Result<Vec<Proof<Bls12>, Global>, Error>
pub fn groth_params<R>(
rng: Option<&mut R>,
public_params: &<S as ProofScheme<'a>>::PublicParams
) -> Result<MappedParameters<Bls12>, Error> where
R: RngCore, [src]
rng: Option<&mut R>,
public_params: &<S as ProofScheme<'a>>::PublicParams
) -> Result<MappedParameters<Bls12>, Error> where
R: RngCore,
pub fn verifying_key<R>(
rng: Option<&mut R>,
public_params: &<S as ProofScheme<'a>>::PublicParams
) -> Result<VerifyingKey<Bls12>, Error> where
R: RngCore, [src]
rng: Option<&mut R>,
public_params: &<S as ProofScheme<'a>>::PublicParams
) -> Result<VerifyingKey<Bls12>, Error> where
R: RngCore,
pub fn circuit_for_test(
public_parameters: &PublicParams<'a, S>,
public_inputs: &<S as ProofScheme<'a>>::PublicInputs,
private_inputs: &<S as ProofScheme<'a>>::PrivateInputs
) -> Result<(C, Vec<Fr, Global>), Error>[src]
public_parameters: &PublicParams<'a, S>,
public_inputs: &<S as ProofScheme<'a>>::PublicInputs,
private_inputs: &<S as ProofScheme<'a>>::PrivateInputs
) -> Result<(C, Vec<Fr, Global>), Error>
pub fn circuit_for_test_all(
public_parameters: &PublicParams<'a, S>,
public_inputs: &<S as ProofScheme<'a>>::PublicInputs,
private_inputs: &<S as ProofScheme<'a>>::PrivateInputs
) -> Result<Vec<(C, Vec<Fr, Global>), Global>, Error>[src]
public_parameters: &PublicParams<'a, S>,
public_inputs: &<S as ProofScheme<'a>>::PublicInputs,
private_inputs: &<S as ProofScheme<'a>>::PrivateInputs
) -> Result<Vec<(C, Vec<Fr, Global>), Global>, Error>
Auto Trait Implementations
impl<Tree> RefUnwindSafe for RationalPoStCompound<Tree> where
Tree: RefUnwindSafe,
impl<Tree> RefUnwindSafe for RationalPoStCompound<Tree> where
Tree: RefUnwindSafe, impl<Tree> Send for RationalPoStCompound<Tree>
impl<Tree> Send for RationalPoStCompound<Tree>impl<Tree> Sync for RationalPoStCompound<Tree>
impl<Tree> Sync for RationalPoStCompound<Tree>impl<Tree> Unpin for RationalPoStCompound<Tree> where
Tree: Unpin,
impl<Tree> Unpin for RationalPoStCompound<Tree> where
Tree: Unpin, impl<Tree> UnwindSafe for RationalPoStCompound<Tree> where
Tree: UnwindSafe,
impl<Tree> UnwindSafe for RationalPoStCompound<Tree> where
Tree: UnwindSafe,