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: OutputRootsOutput roots
rproof_root: HashRange Proof root
kernel_root: HashKernel 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