[][src]Struct storage_proofs::circuit::ppor::ParallelProofOfRetrievability

pub struct ParallelProofOfRetrievability<'a, E: JubjubEngine> {
    pub params: &'a E::Params,
    pub values: Vec<Option<E::Fr>>,
    pub auth_paths: Vec<Vec<Option<(E::Fr, bool)>>>,
    pub root: Option<E::Fr>,
}

This is an instance of the ParallelProofOfRetrievability circuit.

Public Inputs

This circuit expects the following public inputs.

  • for i in 0..values.len()
    • [0] - packed version of value as bits. (might be more than one Fr)
    • [1] - packed version of the is_right components of the auth_path.
    • [2] - the merkle root of the tree.

Fields

params: &'a E::Params

Paramters for the engine.

values: Vec<Option<E::Fr>>

Pedersen commitment to the value.

auth_paths: Vec<Vec<Option<(E::Fr, bool)>>>

The authentication path of the commitment in the tree.

root: Option<E::Fr>

The root of the underyling merkle tree.

Trait Implementations

impl<'a, E: JubjubEngine> Circuit<E> for ParallelProofOfRetrievability<'a, E>[src]

Auto Trait Implementations

impl<'a, E> Send for ParallelProofOfRetrievability<'a, E> where
    <E as ScalarEngine>::Fr: Send,
    <E as JubjubEngine>::Params: Sync

impl<'a, E> Unpin for ParallelProofOfRetrievability<'a, E> where
    <E as ScalarEngine>::Fr: Unpin

impl<'a, E> Sync for ParallelProofOfRetrievability<'a, E> where
    <E as ScalarEngine>::Fr: Sync,
    <E as JubjubEngine>::Params: Sync

impl<'a, E> UnwindSafe for ParallelProofOfRetrievability<'a, E> where
    <E as ScalarEngine>::Fr: UnwindSafe,
    <E as JubjubEngine>::Params: RefUnwindSafe

impl<'a, E> RefUnwindSafe for ParallelProofOfRetrievability<'a, E> where
    <E as ScalarEngine>::Fr: 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]

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> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<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>,