Trait commit_verify::merkle::ToMerkleSource[][src]

pub trait ToMerkleSource {
    type Leaf: ConsensusMerkleCommit;
    fn to_merkle_source(&self) -> MerkleSource<Self::Leaf>;
}
Expand description

Converts given piece of client-side-validated data into a structure which can be used in merklization process.

This dedicated structure is required since with impl From<_> for MerkleSource we would not be able to specify a concrete tagged hash, which we require in LNPBP-81 merklization and which we provide here via ToMerkleSource::Leaf associated type holding [ConsensusMerkleCommit::MERKLE_NODE_PREFIX`] prefix value.

Associated Types

type Leaf: ConsensusMerkleCommit[src]

Expand description

Defining type of the commitment produced during merlization process

Loading content...

Required methods

fn to_merkle_source(&self) -> MerkleSource<Self::Leaf>[src]

Expand description

Performs transformation of the data type into a merkilzable data

Loading content...

Implementors

Loading content...