#[repr(u8)]pub enum SighashType {
Default = 0,
All = 1,
None = 2,
Single = 3,
AllAnyoneCanPay = 129,
NoneAnyoneCanPay = 130,
SingleAnyoneCanPay = 131,
}Expand description
Tapscript signature hash types.
Variants§
Default = 0
Default (same as ALL for Taproot).
All = 1
Sign all inputs and outputs.
None = 2
Sign all inputs, no outputs.
Single = 3
Sign all inputs, only the output at same index.
AllAnyoneCanPay = 129
AnyoneCanPay modifier (can be combined with above).
NoneAnyoneCanPay = 130
AnyoneCanPay + None.
SingleAnyoneCanPay = 131
AnyoneCanPay + Single.
Implementations§
Trait Implementations§
Source§impl Clone for SighashType
impl Clone for SighashType
Source§fn clone(&self) -> SighashType
fn clone(&self) -> SighashType
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 SighashType
impl Debug for SighashType
Source§impl PartialEq for SighashType
impl PartialEq for SighashType
impl Copy for SighashType
impl Eq for SighashType
impl StructuralPartialEq for SighashType
Auto Trait Implementations§
impl Freeze for SighashType
impl RefUnwindSafe for SighashType
impl Send for SighashType
impl Sync for SighashType
impl Unpin for SighashType
impl UnsafeUnpin for SighashType
impl UnwindSafe for SighashType
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