Struct grin_chain::types::TxHashSetRoots
source · pub struct TxHashSetRoots {
pub output_roots: OutputRoots,
pub rproof_root: Hash,
pub kernel_root: Hash,
}
Expand description
A helper for the various txhashset MMR roots.
Fields§
§output_roots: OutputRoots
Output roots
rproof_root: Hash
Range Proof root
kernel_root: Hash
Kernel root
Implementations§
source§impl TxHashSetRoots
impl TxHashSetRoots
sourcepub fn output_root(&self, header: &BlockHeader) -> Hash
pub fn output_root(&self, header: &BlockHeader) -> Hash
Accessor for the output PMMR root (rules here are block height dependent). 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 TxHashSetRoots
impl RefUnwindSafe for TxHashSetRoots
impl Send for TxHashSetRoots
impl Sync for TxHashSetRoots
impl Unpin for TxHashSetRoots
impl UnwindSafe for TxHashSetRoots
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