#[repr(C)]pub struct PosProofs {
pub found_proofs: [u8; 8192],
pub proofs: [PosProof; 32768],
}
Expand description
Proof-of-space proofs
Fields§
§found_proofs: [u8; 8192]
S-buckets at which proofs were found.
S-buckets are grouped by 8, within each u8
bits right to left (LSB) indicate the presence
of a proof for corresponding s-bucket, so that the whole array of bytes can be thought as a
large set of bits.
There will be at most [Record::NUM_CHUNKS
] proofs produced/bits set to 1
.
proofs: [PosProof; 32768]
[Record::NUM_CHUNKS
] proofs, corresponding to set bits of found_proofs
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PosProofs
impl RefUnwindSafe for PosProofs
impl Send for PosProofs
impl Sync for PosProofs
impl Unpin for PosProofs
impl UnwindSafe for PosProofs
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