Enum zcash_history::V2
source · [−]pub enum V2 {}
Expand description
Version 2 of the Zcash chain history tree.
This version is used from the NU5 epoch.
Trait Implementations
sourceimpl Version for V2
impl Version for V2
type NodeData = V2
type NodeData = V2
The node data for this tree version.
sourcefn 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.
sourcefn start_height(data: &Self::NodeData) -> u64
fn start_height(data: &Self::NodeData) -> u64
Returns the start height for the given node data.
sourcefn end_height(data: &Self::NodeData) -> u64
fn end_height(data: &Self::NodeData) -> u64
Returns the end height for the given node data.
sourcefn 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
sourcefn 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.
sourcefn 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.
sourcefn 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
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more