[][src]Struct storage_proofs::drgporep::Proof

pub struct Proof<H: Hasher> {
    pub data_root: H::Domain,
    pub replica_root: H::Domain,
    pub replica_nodes: Vec<DataProof<H>>,
    pub replica_parents: Vec<ReplicaParents<H>>,
    pub nodes: Vec<DataProof<H>>,
}

Fields

data_root: H::Domainreplica_root: H::Domainreplica_nodes: Vec<DataProof<H>>replica_parents: Vec<ReplicaParents<H>>nodes: Vec<DataProof<H>>

Methods

impl<H: Hasher> Proof<H>[src]

pub fn new_empty(height: usize, degree: usize, challenges: usize) -> Proof<H>[src]

pub fn serialize(&self) -> Vec<u8>[src]

pub fn new(
    replica_nodes: Vec<DataProof<H>>,
    replica_parents: Vec<ReplicaParents<H>>,
    nodes: Vec<DataProof<H>>
) -> Proof<H>
[src]

Trait Implementations

impl<H: Default + Hasher> Default for Proof<H> where
    H::Domain: Default,
    H::Domain: Default
[src]

impl<H: Clone + Hasher> Clone for Proof<H> where
    H::Domain: Clone,
    H::Domain: Clone
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'a, H: Hasher> From<&'a Proof<H>> for Proof<H>[src]

impl<H: Debug + Hasher> Debug for Proof<H> where
    H::Domain: Debug,
    H::Domain: Debug
[src]

impl<H: Hasher> Serialize for Proof<H> where
    H::Domain: Serialize,
    H::Domain: Serialize,
    DataProof<H>: Serialize,
    H::Domain: Serialize,
    H::Domain: Serialize
[src]

impl<'de, H: Hasher> Deserialize<'de> for Proof<H> where
    H::Domain: Deserialize<'de>,
    H::Domain: Deserialize<'de>,
    DataProof<H>: Deserialize<'de>,
    H::Domain: Deserialize<'de>,
    H::Domain: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<H> Unpin for Proof<H> where
    H: Unpin,
    <H as Hasher>::Domain: Unpin

impl<H> Send for Proof<H> where
    <H as Hasher>::Domain: Send

impl<H> Sync for Proof<H> where
    <H as Hasher>::Domain: Sync

impl<H> UnwindSafe for Proof<H> where
    H: UnwindSafe,
    <H as Hasher>::Domain: UnwindSafe

impl<H> RefUnwindSafe for Proof<H> where
    H: RefUnwindSafe,
    <H as Hasher>::Domain: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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>,