pub enum V2 {}
Expand description
Version 2 of the Zcash chain history tree.
This version is used from the NU5 epoch.
Trait Implementations§
Source§impl Version for V2
impl Version for V2
Source§fn consensus_branch_id(data: &Self::NodeData) -> u32
fn consensus_branch_id(data: &Self::NodeData) -> u32
Returns the consensus branch ID for the given node data.
Source§fn start_height(data: &Self::NodeData) -> u64
fn start_height(data: &Self::NodeData) -> u64
Returns the start height for the given node data.
Source§fn end_height(data: &Self::NodeData) -> u64
fn end_height(data: &Self::NodeData) -> u64
Returns the end height for the given node data.
Source§fn combine_inner(
subtree_commitment: [u8; 32],
left: &Self::NodeData,
right: &Self::NodeData,
) -> Self::NodeData
fn combine_inner( subtree_commitment: [u8; 32], left: &Self::NodeData, right: &Self::NodeData, ) -> Self::NodeData
Combines two nodes metadata. Read more
Source§fn read<R: Read>(consensus_branch_id: u32, r: &mut R) -> Result<Self::NodeData>
fn read<R: Read>(consensus_branch_id: u32, r: &mut R) -> Result<Self::NodeData>
Parses node data from the given reader.
Source§fn write<W: Write>(data: &Self::NodeData, w: &mut W) -> Result<()>
fn write<W: Write>(data: &Self::NodeData, w: &mut W) -> Result<()>
Writes the byte representation of the given node data to the given writer.
Source§fn combine(left: &Self::NodeData, right: &Self::NodeData) -> Self::NodeData
fn combine(left: &Self::NodeData, right: &Self::NodeData) -> Self::NodeData
Combines two nodes’ metadata.
Auto Trait Implementations§
impl Freeze for V2
impl RefUnwindSafe for V2
impl Send for V2
impl Sync for V2
impl Unpin for V2
impl UnwindSafe for V2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more