Expand description
Sapling 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§
- Legacy
Frontier - Legacy
NonEmpty Frontier - Legacy
Note Commitment Tree - A legacy version of
NoteCommitmentTree
. - Legacy
Position
Enums§
- Legacy
Leaf - A set of leaves of a Merkle tree.