pub enum SatisfiedConstraint {
PublicKey {
key_sig: KeySigPair,
},
PublicKeyHash {
keyhash: Hash,
key_sig: KeySigPair,
},
HashLock {
hash: HashLockType,
preimage: [u8; 32],
},
RelativeTimelock {
n: LockTime,
},
AbsoluteTimelock {
n: LockTime,
},
}
Expand description
A satisfied Miniscript condition (Signature, Hashlock, Timelock) ’intp represents the lifetime of descriptor and `stack represents the lifetime of witness
Variants§
PublicKey
Fields
§
key_sig: KeySigPair
KeySig pair
Public key and corresponding signature
PublicKeyHash
PublicKeyHash, corresponding pubkey and signature
HashLock
Hashlock and preimage for SHA256
RelativeTimelock
Relative Timelock for CSV.
AbsoluteTimelock
Absolute Timelock for CLTV.
Trait Implementations§
source§impl Clone for SatisfiedConstraint
impl Clone for SatisfiedConstraint
source§fn clone(&self) -> SatisfiedConstraint
fn clone(&self) -> SatisfiedConstraint
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 SatisfiedConstraint
impl Debug for SatisfiedConstraint
source§impl Hash for SatisfiedConstraint
impl Hash for SatisfiedConstraint
source§impl PartialEq<SatisfiedConstraint> for SatisfiedConstraint
impl PartialEq<SatisfiedConstraint> for SatisfiedConstraint
source§fn eq(&self, other: &SatisfiedConstraint) -> bool
fn eq(&self, other: &SatisfiedConstraint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SatisfiedConstraint
impl Eq for SatisfiedConstraint
impl StructuralEq for SatisfiedConstraint
impl StructuralPartialEq for SatisfiedConstraint
Auto Trait Implementations§
impl RefUnwindSafe for SatisfiedConstraint
impl Send for SatisfiedConstraint
impl Sync for SatisfiedConstraint
impl Unpin for SatisfiedConstraint
impl UnwindSafe for SatisfiedConstraint
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