Enum 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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for PsbtSighashMsg
impl Debug for PsbtSighashMsg
sourceimpl Hash for PsbtSighashMsg
impl Hash for PsbtSighashMsg
sourceimpl Ord for PsbtSighashMsg
impl Ord for PsbtSighashMsg
sourcefn cmp(&self, other: &PsbtSighashMsg) -> Ordering
fn cmp(&self, other: &PsbtSighashMsg) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<PsbtSighashMsg> for PsbtSighashMsg
impl PartialEq<PsbtSighashMsg> for PsbtSighashMsg
sourcefn eq(&self, other: &PsbtSighashMsg) -> bool
fn eq(&self, other: &PsbtSighashMsg) -> bool
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>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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