Struct grin_core::core::block::HeaderEntry
source · pub struct HeaderEntry { /* private fields */ }
Expand description
Header entry for storing in the header MMR. Note: we hash the block header itself and maintain the hash in the entry. This allows us to lookup the original header from the db as necessary.
Trait Implementations§
source§impl Debug for HeaderEntry
impl Debug for HeaderEntry
source§impl Readable for HeaderEntry
impl Readable for HeaderEntry
Auto Trait Implementations§
impl Freeze for HeaderEntry
impl RefUnwindSafe for HeaderEntry
impl Send for HeaderEntry
impl Sync for HeaderEntry
impl Unpin for HeaderEntry
impl UnwindSafe for HeaderEntry
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<H> ShortIdentifiable for Hwhere
H: Hashed,
impl<H> ShortIdentifiable for Hwhere
H: Hashed,
source§fn short_id(&self, hash: &Hash, nonce: u64) -> ShortId
fn short_id(&self, hash: &Hash, nonce: u64) -> ShortId
Generate a short_id via the following -
- extract k0/k1 from block_hash hashed with the nonce (first two u64
values) * initialize a siphasher24 with k0/k1
- self.hash() passing in the siphasher24 instance
- drop the 2 most significant bytes (to return a 6 byte short_id)