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
Public key and corresponding signature
Fields
§
key_sig: KeySigPair
KeySig pair
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 duplicate 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 PartialEq for SatisfiedConstraint
impl PartialEq for SatisfiedConstraint
impl Copy for SatisfiedConstraint
impl Eq for SatisfiedConstraint
impl StructuralPartialEq for SatisfiedConstraint
Auto Trait Implementations§
impl Freeze for SatisfiedConstraint
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