zebra_chain::orchard::tree

Module legacy

source
Expand description

Orchard serialization legacy code.

We create a LegacyNoteCommitmentTree which is a copy of NoteCommitmentTree but where serialization and deserialization can be derived. To do this we create a LegacyFrontier which is a legacy Frontier structure that can be found in 1, In order to make LegacyFrontier serializable we also have our own versions of NonEmptyFrontier (LegacyNonEmptyFrontier), Leaf(LegacyLeaf) and Position(LegacyPosition) that can be found in 1 or 2.

Conversions methods to/from LegacyNoteCommitmentTree to/from NoteCommitmentTree are defined also in this file.

Structsยง

Enumsยง

  • LegacyLeaf ๐Ÿ”’
    A set of leaves of a Merkle tree.