pub enum SatisfiedConstraint {
PublicKey {
key_sig: KeySigPair,
},
PublicKeyHash {
keyhash: Hash,
key_sig: KeySigPair,
},
HashLock {
hash: HashLockType,
preimage: [u8; 32],
},
RelativeTimelock {
n: Sequence,
},
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
Fields
n: Sequence
The value of RelativeTimelock
Relative Timelock for CSV.
AbsoluteTimelock
Fields
n: LockTime
The value of Absolute timelock
Absolute Timelock for CLTV.
Trait Implementations
sourceimpl Clone for SatisfiedConstraint
impl Clone for SatisfiedConstraint
sourcefn clone(&self) -> SatisfiedConstraint
fn clone(&self) -> SatisfiedConstraint
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 SatisfiedConstraint
impl Debug for SatisfiedConstraint
sourceimpl PartialEq<SatisfiedConstraint> for SatisfiedConstraint
impl PartialEq<SatisfiedConstraint> for SatisfiedConstraint
sourcefn eq(&self, other: &SatisfiedConstraint) -> bool
fn eq(&self, other: &SatisfiedConstraint) -> bool
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
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