[][src]Struct storage_proofs::batchpost::BatchPoST

pub struct BatchPoST<H: Hasher> { /* fields omitted */ }

Trait Implementations

impl<'a, H: 'a + Hasher> ProofScheme<'a> for BatchPoST<H>[src]

type PublicParams = PublicParams

type SetupParams = SetupParams

type PublicInputs = PublicInputs<'a, H::Domain>

type PrivateInputs = PrivateInputs<'a, H>

type Proof = Proof<H>

type Requirements = NoRequirements

fn prove_all_partitions<'b>(
    pub_params: &'b Self::PublicParams,
    pub_in: &'b Self::PublicInputs,
    priv_in: &'b Self::PrivateInputs,
    partition_count: usize
) -> Result<Vec<Self::Proof>>
[src]

fn verify_all_partitions(
    pub_params: &Self::PublicParams,
    pub_in: &Self::PublicInputs,
    proofs: &[Self::Proof]
) -> Result<bool>
[src]

fn with_partition(
    pub_in: Self::PublicInputs,
    _k: Option<usize>
) -> Self::PublicInputs
[src]

fn satisfies_requirements(
    _pub_params: &Self::PublicParams,
    _requirements: &Self::Requirements,
    _partitions: usize
) -> bool
[src]

impl<H: Default + Hasher> Default for BatchPoST<H>[src]

impl<H: Debug + Hasher> Debug for BatchPoST<H>[src]

Auto Trait Implementations

impl<H> Unpin for BatchPoST<H> where
    H: Unpin

impl<H> Sync for BatchPoST<H>

impl<H> Send for BatchPoST<H>

impl<H> RefUnwindSafe for BatchPoST<H> where
    H: RefUnwindSafe

impl<H> UnwindSafe for BatchPoST<H> where
    H: UnwindSafe

Blanket Implementations

impl<'a, L> ProofScheme<'a> for L where
    L: Layers
[src]

type PublicParams = PublicParams<<L as Layers>::Hasher, <L as Layers>::Graph>

type SetupParams = SetupParams

type PublicInputs = PublicInputs<<<L as Layers>::Hasher as Hasher>::Domain>

type PrivateInputs = PrivateInputs<<L as Layers>::Hasher>

type Proof = Proof<<L as Layers>::Hasher>

type Requirements = ChallengeRequirements

fn verify(
    _pub_params: &Self::PublicParams,
    _pub_inputs: &Self::PublicInputs,
    _proof: &Self::Proof
) -> Result<bool>
[src]

verify returns true if the supplied proof is valid for the given public parameter and public inputs. Note that verify does not have access to private inputs. Remember that proof is untrusted, and any data it provides MUST be validated as corresponding to the supplied public parameters and inputs. Read more

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,