Struct storage_proofs_porep::stacked::StackedGraph [−][src]
Implementations
impl<H, G> StackedGraph<H, G> where
H: Hasher,
G: Graph<H> + ParameterSetMetadata + Sync + Send,
[src]
impl<H, G> StackedGraph<H, G> where
H: Hasher,
G: Graph<H> + ParameterSetMetadata + Sync + Send,
[src]pub fn new(
base_graph: Option<G>,
nodes: usize,
base_degree: usize,
expansion_degree: usize,
porep_id: PoRepID,
api_version: ApiVersion
) -> Result<Self>
[src]Returns a reference to the parent cache.
impl<'a, H, G> StackedGraph<H, G> where
H: Hasher,
G: Graph<H> + ParameterSetMetadata + Sync + Send,
[src]
impl<'a, H, G> StackedGraph<H, G> where
H: Hasher,
G: Graph<H> + ParameterSetMetadata + Sync + Send,
[src]pub fn new_stacked(
nodes: usize,
base_degree: usize,
expansion_degree: usize,
porep_id: PoRepID,
api_version: ApiVersion
) -> Result<Self>
[src]Trait Implementations
impl<H, G> Graph<H> for StackedGraph<H, G> where
H: Hasher,
G: Graph<H> + ParameterSetMetadata + Sync + Send,
[src]
impl<H, G> Graph<H> for StackedGraph<H, G> where
H: Hasher,
G: Graph<H> + ParameterSetMetadata + Sync + Send,
[src]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]Creates the encoding key.
The algorithm for that is Sha256(id | encodedParentNode1 | encodedParentNode1 | ...)
. Read more
Returns the expected size of all nodes in the graph.
Returns the merkle tree depth.
impl<H, G> ParameterSetMetadata for StackedGraph<H, G> where
H: Hasher,
G: Graph<H> + ParameterSetMetadata,
[src]
impl<H, G> ParameterSetMetadata for StackedGraph<H, G> where
H: Hasher,
G: Graph<H> + ParameterSetMetadata,
[src]Auto Trait Implementations
impl<H, G> RefUnwindSafe for StackedGraph<H, G> where
G: RefUnwindSafe,
H: RefUnwindSafe,
impl<H, G> Send for StackedGraph<H, G> where
G: Send,
impl<H, G> Sync for StackedGraph<H, G> where
G: Sync,
impl<H, G> Unpin for StackedGraph<H, G> where
G: Unpin,
H: Unpin,
impl<H, G> UnwindSafe for StackedGraph<H, G> where
G: UnwindSafe,
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