pub struct TaprootCanSign {
pub key_spend: bool,
pub script_spend: TaprootAvailableLeaves,
pub sighash_default: bool,
}Expand description
Signatures which a taproot key can produce
Defaults to key_spend=true, script_spend=Any and sighash_default=true
Fields§
§key_spend: boolCan produce key spend signatures
script_spend: TaprootAvailableLeavesCan produce script spend signatures
sighash_default: boolWhether SIGHASH_DEFAULT will be used to sign
Trait Implementations§
Source§impl Clone for TaprootCanSign
impl Clone for TaprootCanSign
Source§fn clone(&self) -> TaprootCanSign
fn clone(&self) -> TaprootCanSign
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaprootCanSign
impl Debug for TaprootCanSign
Source§impl Default for TaprootCanSign
impl Default for TaprootCanSign
Source§impl Hash for TaprootCanSign
impl Hash for TaprootCanSign
Source§impl Ord for TaprootCanSign
impl Ord for TaprootCanSign
Source§fn cmp(&self, other: &TaprootCanSign) -> Ordering
fn cmp(&self, other: &TaprootCanSign) -> Ordering
1.21.0 · 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 TaprootCanSign
impl PartialEq for TaprootCanSign
Source§impl PartialOrd for TaprootCanSign
impl PartialOrd for TaprootCanSign
impl Eq for TaprootCanSign
impl StructuralPartialEq for TaprootCanSign
Auto Trait Implementations§
impl Freeze for TaprootCanSign
impl RefUnwindSafe for TaprootCanSign
impl Send for TaprootCanSign
impl Sync for TaprootCanSign
impl Unpin for TaprootCanSign
impl UnwindSafe for TaprootCanSign
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