pub enum SighashRules {
Bip341,
KnotsUnified,
}Expand description
Which signature-hash rules a spend is judged by.
Variants§
Bip341
BIP 341 only: the stock family, and any family before its fork height.
KnotsUnified
Knots’ unified sighash is in force: a signature whose hash type carries
SIGHASH_UNIFIED is verified over the unified message; one without
it over BIP 341’s, as before.
Trait Implementations§
Source§impl Clone for SighashRules
impl Clone for SighashRules
Source§fn clone(&self) -> SighashRules
fn clone(&self) -> SighashRules
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 SighashRules
Source§impl Debug for SighashRules
impl Debug for SighashRules
Source§impl Default for SighashRules
impl Default for SighashRules
Source§fn default() -> SighashRules
fn default() -> SighashRules
Returns the “default value” for a type. Read more
impl Eq for SighashRules
Source§impl PartialEq for SighashRules
impl PartialEq for SighashRules
impl StructuralPartialEq for SighashRules
Auto Trait Implementations§
impl Freeze for SighashRules
impl RefUnwindSafe for SighashRules
impl Send for SighashRules
impl Sync for SighashRules
impl Unpin for SighashRules
impl UnsafeUnpin for SighashRules
impl UnwindSafe for SighashRules
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.