pub trait PuzzleTrait<N: Network>: Send + Sync {
// Required methods
fn new() -> Self
where Self: Sized;
fn to_leaves(
&self,
epoch_hash: N::BlockHash,
rng: &mut ChaChaRng,
) -> Result<Vec<Vec<bool>>>;
fn to_all_leaves(
&self,
epoch_hash: N::BlockHash,
rngs: Vec<ChaChaRng>,
) -> Result<Vec<Vec<Vec<bool>>>>;
}
Expand description
The puzzle trait.