[−][src]Struct storage_proofs::drgporep::Proof
Fields
data_root: H::Domain
replica_root: H::Domain
replica_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]
replica_nodes: Vec<DataProof<H>>,
replica_parents: Vec<ReplicaParents<H>>,
nodes: Vec<DataProof<H>>
) -> Proof<H>
Trait Implementations
impl<H: Default + Hasher> Default for Proof<H> where
H::Domain: Default,
H::Domain: Default,
[src]
H::Domain: Default,
H::Domain: Default,
impl<H: Clone + Hasher> Clone for Proof<H> where
H::Domain: Clone,
H::Domain: Clone,
[src]
H::Domain: Clone,
H::Domain: Clone,
fn clone(&self) -> Proof<H>
[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]
H::Domain: Debug,
H::Domain: Debug,
impl<H: Hasher> Serialize for Proof<H> where
H::Domain: Serialize,
H::Domain: Serialize,
DataProof<H>: Serialize,
H::Domain: Serialize,
H::Domain: Serialize,
[src]
H::Domain: Serialize,
H::Domain: Serialize,
DataProof<H>: Serialize,
H::Domain: Serialize,
H::Domain: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
H::Domain: Deserialize<'de>,
H::Domain: Deserialize<'de>,
DataProof<H>: Deserialize<'de>,
H::Domain: Deserialize<'de>,
H::Domain: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<H> Unpin for Proof<H> where
H: Unpin,
<H as Hasher>::Domain: Unpin,
H: Unpin,
<H as Hasher>::Domain: Unpin,
impl<H> Send for Proof<H> where
<H as Hasher>::Domain: Send,
<H as Hasher>::Domain: Send,
impl<H> Sync for Proof<H> where
<H as Hasher>::Domain: Sync,
<H as Hasher>::Domain: Sync,
impl<H> UnwindSafe for Proof<H> where
H: UnwindSafe,
<H as Hasher>::Domain: UnwindSafe,
H: UnwindSafe,
<H as Hasher>::Domain: UnwindSafe,
impl<H> RefUnwindSafe for Proof<H> where
H: RefUnwindSafe,
<H as Hasher>::Domain: RefUnwindSafe,
H: RefUnwindSafe,
<H as Hasher>::Domain: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
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>,