Skip to main content

Module mmr

Module mmr 

Source

Macrosยง

impl_staged_mmr_read ๐Ÿ”’

Structsยง

HypercallMmr
Self-contained MMR that owns its store.
Keccak256Merge
MemoryMmrStore
In-memory MMR store backed by a HashMap.
MmrHash
PreparedMmrAppend
StagedMmrStore ๐Ÿ”’

Traitsยง

MmrMetadataStore
Metadata needed to resume an MMR at the exact append position.
PrepareMmrStore
SupportedMmrStore

Functionsยง

hash_mmr_leaf
Hash arbitrary data into an MMR leaf with domain separation. Domain tag 0x00 for leaves, 0x01 for internal nodes (in Merge). This prevents second-preimage attacks where a leaf hash could be mistaken for an internal node hash.
prepare_append_many_with_store ๐Ÿ”’