[][src]Trait grin_core::ser::PMMRable

pub trait PMMRable: Writeable + Clone + Debug + DefaultHashable {
    type E: FixedLength + Readable + Writeable + Debug;
    fn as_elmt(&self) -> Self::E;
}

Trait for types that can be added to a PMMR.

Associated Types

type E: FixedLength + Readable + Writeable + Debug

The type of element actually stored in the MMR data file. This allows us to store Hash elements in the header MMR for variable size BlockHeaders.

Loading content...

Required methods

fn as_elmt(&self) -> Self::E

Convert the pmmrable into the element to be stored in the MMR data file.

Loading content...

Implementations on Foreign Types

impl PMMRable for RangeProof[src]

type E = Self

Loading content...

Implementors

impl PMMRable for BlockHeader[src]

type E = HeaderEntry

impl PMMRable for Output[src]

We can build an Output MMR but store instances of OutputIdentifier in the MMR data file.

impl PMMRable for TxKernel[src]

We store TxKernelEntry in the kernel MMR.

Loading content...