pub enum SatisfiedConstraint<'intp, 'txin> {
PublicKey {
key: &'intp PublicKey,
sig: Signature,
},
PublicKeyHash {
keyhash: &'intp Hash,
key: PublicKey,
sig: Signature,
},
HashLock {
hash: HashLockType<'intp>,
preimage: &'txin [u8],
},
RelativeTimeLock {
time: &'intp u32,
},
AbsoluteTimeLock {
time: &'intp u32,
},
}
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
PublicKeyHash
Fields
key: PublicKey
Corresponding public key
PublicKeyHash, corresponding pubkey and signature
HashLock
Fields
hash: HashLockType<'intp>
The type of Hashlock
Hashlock and preimage for SHA256
RelativeTimeLock
Fields
time: &'intp u32
The value of RelativeTimelock
Relative Timelock for CSV.
AbsoluteTimeLock
Fields
time: &'intp u32
The value of Absolute timelock
Absolute Timelock for CLTV.
Trait Implementations
sourceimpl<'intp, 'txin> Clone for SatisfiedConstraint<'intp, 'txin>
impl<'intp, 'txin> Clone for SatisfiedConstraint<'intp, 'txin>
sourcefn clone(&self) -> SatisfiedConstraint<'intp, 'txin>
fn clone(&self) -> SatisfiedConstraint<'intp, 'txin>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'intp, 'txin> Debug for SatisfiedConstraint<'intp, 'txin>
impl<'intp, 'txin> Debug for SatisfiedConstraint<'intp, 'txin>
sourceimpl<'intp, 'txin> PartialEq<SatisfiedConstraint<'intp, 'txin>> for SatisfiedConstraint<'intp, 'txin>
impl<'intp, 'txin> PartialEq<SatisfiedConstraint<'intp, 'txin>> for SatisfiedConstraint<'intp, 'txin>
sourcefn eq(&self, other: &SatisfiedConstraint<'intp, 'txin>) -> bool
fn eq(&self, other: &SatisfiedConstraint<'intp, 'txin>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SatisfiedConstraint<'intp, 'txin>) -> bool
fn ne(&self, other: &SatisfiedConstraint<'intp, 'txin>) -> bool
This method tests for !=
.
impl<'intp, 'txin> Copy for SatisfiedConstraint<'intp, 'txin>
impl<'intp, 'txin> Eq for SatisfiedConstraint<'intp, 'txin>
impl<'intp, 'txin> StructuralEq for SatisfiedConstraint<'intp, 'txin>
impl<'intp, 'txin> StructuralPartialEq for SatisfiedConstraint<'intp, 'txin>
Auto Trait Implementations
impl<'intp, 'txin> RefUnwindSafe for SatisfiedConstraint<'intp, 'txin>
impl<'intp, 'txin> Send for SatisfiedConstraint<'intp, 'txin>
impl<'intp, 'txin> Sync for SatisfiedConstraint<'intp, 'txin>
impl<'intp, 'txin> Unpin for SatisfiedConstraint<'intp, 'txin>
impl<'intp, 'txin> UnwindSafe for SatisfiedConstraint<'intp, 'txin>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more