Struct grin_chain::types::OutputRoots
source · pub struct OutputRoots {
pub pmmr_root: Hash,
pub bitmap_root: Hash,
}
Expand description
A helper for the various output roots.
Fields§
§pmmr_root: Hash
The output PMMR root
bitmap_root: Hash
The bitmap accumulator root
Implementations§
source§impl OutputRoots
impl OutputRoots
sourcepub fn root(&self, header: &BlockHeader) -> Hash
pub fn root(&self, header: &BlockHeader) -> Hash
The root of our output PMMR. The rules here are block height specific. We use the merged root here for header version 3 and later. We assume the header version is consistent with the block height, validated as part of pipe::validate_header().
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OutputRoots
impl RefUnwindSafe for OutputRoots
impl Send for OutputRoots
impl Sync for OutputRoots
impl Unpin for OutputRoots
impl UnwindSafe for OutputRoots
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