[][src]Struct grin_chain::types::OutputRoots

pub struct OutputRoots {
    pub pmmr_root: Hash,
    pub bitmap_root: Hash,
}

A helper for the various output roots.

Fields

pmmr_root: Hash

The output PMMR root

bitmap_root: Hash

The bitmap accumulator root

Methods

impl OutputRoots[src]

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

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

impl Debug for OutputRoots[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>,