pub enum HashlockVersion {
V0,
V1,
}Expand description
The version of the hashlock clauses used in the leaves of a VTXO tree.
Trees created before the PROTOCOL_VERSION_HASHLOCK_CLAUSES protocol
version used the v0 unlock scripts.
We forgot to properly encode the difference in the trees, so version used is detected at runtime and then stored inside the tree.
Variants§
Trait Implementations§
Source§impl Clone for HashlockVersion
impl Clone for HashlockVersion
Source§fn clone(&self) -> HashlockVersion
fn clone(&self) -> HashlockVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HashlockVersion
Source§impl Debug for HashlockVersion
impl Debug for HashlockVersion
impl Eq for HashlockVersion
Source§impl Hash for HashlockVersion
impl Hash for HashlockVersion
Source§impl Ord for HashlockVersion
impl Ord for HashlockVersion
Source§fn cmp(&self, other: &HashlockVersion) -> Ordering
fn cmp(&self, other: &HashlockVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HashlockVersion
impl PartialEq for HashlockVersion
Source§impl PartialOrd for HashlockVersion
impl PartialOrd for HashlockVersion
impl StructuralPartialEq for HashlockVersion
Auto Trait Implementations§
impl Freeze for HashlockVersion
impl RefUnwindSafe for HashlockVersion
impl Send for HashlockVersion
impl Sync for HashlockVersion
impl Unpin for HashlockVersion
impl UnsafeUnpin for HashlockVersion
impl UnwindSafe for HashlockVersion
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