Enum sapio_miniscript::psbt::PsbtSigHashMsg
source · [−]pub enum PsbtSigHashMsg {
TapSigHash(TapSighashHash),
EcdsaSigHash(SigHash),
}
Expand description
Sighash message(signing data) for a given psbt transaction input.
Variants
TapSigHash(TapSighashHash)
Taproot Signature hash
EcdsaSigHash(SigHash)
Ecdsa SigHash message (includes sighash for legacy/p2sh/segwitv0 outputs)
Implementations
sourceimpl PsbtSigHashMsg
impl PsbtSigHashMsg
sourcepub fn to_secp_msg(&self) -> Message
pub fn to_secp_msg(&self) -> Message
Convert the message to a [secp256k1::Message
].
Trait Implementations
sourceimpl Clone for PsbtSigHashMsg
impl Clone for PsbtSigHashMsg
sourcefn clone(&self) -> PsbtSigHashMsg
fn clone(&self) -> PsbtSigHashMsg
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PsbtSigHashMsg
impl Debug for PsbtSigHashMsg
sourceimpl Hash for PsbtSigHashMsg
impl Hash for PsbtSigHashMsg
sourceimpl Ord for PsbtSigHashMsg
impl Ord for PsbtSigHashMsg
sourceimpl PartialEq<PsbtSigHashMsg> for PsbtSigHashMsg
impl PartialEq<PsbtSigHashMsg> for PsbtSigHashMsg
sourcefn eq(&self, other: &PsbtSigHashMsg) -> bool
fn eq(&self, other: &PsbtSigHashMsg) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PsbtSigHashMsg) -> bool
fn ne(&self, other: &PsbtSigHashMsg) -> bool
This method tests for !=
.
sourceimpl PartialOrd<PsbtSigHashMsg> for PsbtSigHashMsg
impl PartialOrd<PsbtSigHashMsg> for PsbtSigHashMsg
sourcefn partial_cmp(&self, other: &PsbtSigHashMsg) -> Option<Ordering>
fn partial_cmp(&self, other: &PsbtSigHashMsg) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for PsbtSigHashMsg
impl Eq for PsbtSigHashMsg
impl StructuralEq for PsbtSigHashMsg
impl StructuralPartialEq for PsbtSigHashMsg
Auto Trait Implementations
impl RefUnwindSafe for PsbtSigHashMsg
impl Send for PsbtSigHashMsg
impl Sync for PsbtSigHashMsg
impl Unpin for PsbtSigHashMsg
impl UnwindSafe for PsbtSigHashMsg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more