[][src]Struct grin_chain::types::TxHashSetRoots

pub struct TxHashSetRoots {
    pub output_roots: OutputRoots,
    pub rproof_root: Hash,
    pub kernel_root: Hash,
}

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

Methods

impl TxHashSetRoots[src]

pub fn output_root(&self, header: &BlockHeader) -> Hash[src]

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().

pub fn validate(&self, header: &BlockHeader) -> Result<(), Error>[src]

Validate roots against the provided block header.

Trait Implementations

impl Debug for TxHashSetRoots[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,