#[repr(C)]pub struct Proofs<const K: u8>{
pub found_proofs: [u8; 8192],
pub proofs: [[u8; { _ }]; 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: [[u8; { _ }]; 32768][Record::NUM_CHUNKS] proofs, corresponding to set bits of found_proofs.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<const K: u8> Freeze for Proofs<K>
impl<const K: u8> RefUnwindSafe for Proofs<K>
impl<const K: u8> Send for Proofs<K>
impl<const K: u8> Sync for Proofs<K>
impl<const K: u8> Unpin for Proofs<K>
impl<const K: u8> UnwindSafe for Proofs<K>
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