[−][src]Struct storage_proofs::drgraph::BucketGraph
Bucket sampling algorithm.
Trait Implementations
impl<H: Hasher> Graph<H> for BucketGraph<H>
[src]
fn parents(&self, node: usize, parents: &mut [usize])
[src]
fn size(&self) -> usize
[src]
fn degree(&self) -> usize
[src]
fn seed(&self) -> [u32; 7]
[src]
fn new(
nodes: usize,
base_degree: usize,
expansion_degree: usize,
seed: [u32; 7]
) -> Self
[src]
nodes: usize,
base_degree: usize,
expansion_degree: usize,
seed: [u32; 7]
) -> Self
fn expected_size(&self) -> usize
[src]
Returns the expected size of all nodes in the graph.
fn merkle_tree<'a>(
&self,
data: &'a [u8]
) -> Result<MerkleTree<H::Domain, H::Function>>
[src]
&self,
data: &'a [u8]
) -> Result<MerkleTree<H::Domain, H::Function>>
Builds a merkle tree based on the given data.
fn merkle_tree_aux<'a>(
&self,
data: &'a [u8],
parallel: bool
) -> Result<MerkleTree<H::Domain, H::Function>>
[src]
&self,
data: &'a [u8],
parallel: bool
) -> Result<MerkleTree<H::Domain, H::Function>>
Builds a merkle tree based on the given data.
fn merkle_tree_depth(&self) -> u64
[src]
Returns the merkle tree depth.
fn forward(&self) -> bool
[src]
impl<H: Hasher> ParameterSetMetadata for BucketGraph<H>
[src]
fn identifier(&self) -> String
[src]
fn sector_size(&self) -> u64
[src]
impl<H: PartialEq + Hasher> PartialEq<BucketGraph<H>> for BucketGraph<H>
[src]
fn eq(&self, other: &BucketGraph<H>) -> bool
[src]
fn ne(&self, other: &BucketGraph<H>) -> bool
[src]
impl<H: Clone + Hasher> Clone for BucketGraph<H>
[src]
fn clone(&self) -> BucketGraph<H>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<H: Eq + Hasher> Eq for BucketGraph<H>
[src]
impl<H: Copy + Hasher> Copy for BucketGraph<H>
[src]
impl<H: Debug + Hasher> Debug for BucketGraph<H>
[src]
Auto Trait Implementations
impl<H> Unpin for BucketGraph<H> where
H: Unpin,
H: Unpin,
impl<H> Sync for BucketGraph<H>
impl<H> Send for BucketGraph<H>
impl<H> RefUnwindSafe for BucketGraph<H> where
H: RefUnwindSafe,
H: RefUnwindSafe,
impl<H> UnwindSafe for BucketGraph<H> where
H: UnwindSafe,
H: UnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
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, 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> 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>,