Remove serialization version constants.

This commit is contained in:
Kris Nuttycombe 2023-03-29 12:23:29 -06:00
parent 71f74d4ac1
commit 4d32a8ac20
2 changed files with 1 additions and 5 deletions

View File

@ -38,13 +38,12 @@ and this library adheres to Rust's notion of
- `write_checkpoint_v2`
- `read_tree`
- `write_tree`
- `merkle_tree::{SER_V1, SER_V2}` have been removed as they are now unused.
### Moved
- The following constants and methods have been moved from the
`merkle_tree::incremental` module into the `merkle_tree` module to
consolidate the serialization code for commitment tree frontiers:
- `SER_V1`
- `SER_V2`
- `write_usize_leu64`
- `read_leu64_usize`
- `write_position`

View File

@ -12,9 +12,6 @@ use zcash_encoding::{Optional, Vector};
use crate::sapling;
pub const SER_V1: u8 = 1;
pub const SER_V2: u8 = 2;
/// A hashable node within a Merkle tree.
pub trait HashSer {
/// Parses a node from the given byte source.