Module zebra_chain::orchard::tree::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ยง
- A legacy version of
NoteCommitmentTree
. - Legacy
Position ๐
Enumsยง
- Legacy
Leaf ๐A set of leaves of a Merkle tree.