Enum zcash_history::V1
source · pub enum V1 {}
Expand description
Version 1 of the Zcash chain history tree.
This version was used for the Heartwood and Canopy epochs.
Trait Implementations§
source§impl Version for V1
impl Version for V1
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 RefUnwindSafe for V1
impl Send for V1
impl Sync for V1
impl Unpin for V1
impl UnwindSafe for V1
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