Enum miniscript::psbt::PsbtSighashMsg
source · pub enum PsbtSighashMsg {
TapSighash(TapSighash),
LegacySighash(LegacySighash),
SegwitV0Sighash(SegwitV0Sighash),
}
Expand description
Sighash message(signing data) for a given psbt transaction input.
Variants§
TapSighash(TapSighash)
Taproot Signature hash
LegacySighash(LegacySighash)
Legacy ECDSA sighash message.
SegwitV0Sighash(SegwitV0Sighash)
Segwit v0 ECDSA sighash message.
Implementations§
source§impl 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§
source§impl Clone for PsbtSighashMsg
impl Clone for PsbtSighashMsg
source§fn clone(&self) -> PsbtSighashMsg
fn clone(&self) -> PsbtSighashMsg
Returns a copy 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 PsbtSighashMsg
impl Debug for PsbtSighashMsg
source§impl Hash for PsbtSighashMsg
impl Hash for PsbtSighashMsg
source§impl Ord for PsbtSighashMsg
impl Ord for PsbtSighashMsg
source§fn cmp(&self, other: &PsbtSighashMsg) -> Ordering
fn cmp(&self, other: &PsbtSighashMsg) -> 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<PsbtSighashMsg> for PsbtSighashMsg
impl PartialEq<PsbtSighashMsg> for PsbtSighashMsg
source§fn 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 ==
.source§impl PartialOrd<PsbtSighashMsg> for PsbtSighashMsg
impl PartialOrd<PsbtSighashMsg> for PsbtSighashMsg
source§fn partial_cmp(&self, other: &PsbtSighashMsg) -> Option<Ordering>
fn partial_cmp(&self, other: &PsbtSighashMsg) -> Option<Ordering>
1.0.0 · source§fn 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 moreimpl 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§
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