pub struct ShimTable { /* private fields */ }
Expand description
Subspace proof of space table.
Shim implementation.
Trait Implementations§
source§impl Table for ShimTable
impl Table for ShimTable
source§const TABLE_TYPE: PosTableType = PosTableType::Shim
const TABLE_TYPE: PosTableType = PosTableType::Shim
Proof of space table type
source§type Generator = ShimTableGenerator
type Generator = ShimTableGenerator
Instance that can be used to generate tables with better performance
source§fn find_proof(&self, challenge_index: u32) -> Option<PosProof>
fn find_proof(&self, challenge_index: u32) -> Option<PosProof>
Try to find proof at
challenge_index
if it existssource§fn is_proof_valid(
seed: &PosSeed,
challenge_index: u32,
proof: &PosProof,
) -> bool
fn is_proof_valid( seed: &PosSeed, challenge_index: u32, proof: &PosProof, ) -> bool
Check whether proof created earlier is valid and return quality bytes if yes
source§fn generate_parallel(seed: &PosSeed) -> Self
fn generate_parallel(seed: &PosSeed) -> Self
Generate new table with 32 bytes seed using parallelism. Read more
source§impl TableGenerator<ShimTable> for ShimTableGenerator
impl TableGenerator<ShimTable> for ShimTableGenerator
Auto Trait Implementations§
impl Freeze for ShimTable
impl RefUnwindSafe for ShimTable
impl Send for ShimTable
impl Sync for ShimTable
impl Unpin for ShimTable
impl UnwindSafe for ShimTable
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more