Struct storage_proofs_core::drgraph::BucketGraph [−][src]
pub struct BucketGraph<H: Hasher> { /* fields omitted */ }
Expand description
Bucket sampling algorithm.
Trait Implementations
Creates the encoding key.
The algorithm for that is Sha256(id | encodedParentNode1 | encodedParentNode1 | ...)
. Read more
Returns a sorted list of all parents of this node. The parents may be repeated. Read more
fn new(
nodes: usize,
base_degree: usize,
expansion_degree: usize,
porep_id: PoRepID,
api_version: ApiVersion
) -> Result<Self>
[src]Returns the expected size of all nodes in the graph.
Returns the merkle tree depth.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<H> RefUnwindSafe for BucketGraph<H> where
H: RefUnwindSafe,
impl<H> Send for BucketGraph<H>
impl<H> Sync for BucketGraph<H>
impl<H> Unpin for BucketGraph<H> where
H: Unpin,
impl<H> UnwindSafe for BucketGraph<H> where
H: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V