Enum miniscript::descriptor::SatisfiedConstraint
source · [−]pub enum SatisfiedConstraint<'desc, 'stack> {
PublicKey {
key: &'desc PublicKey,
sig: Signature,
},
PublicKeyHash {
keyhash: &'desc Hash,
key: PublicKey,
sig: Signature,
},
HashLock {
hash: HashLockType<'desc>,
preimage: &'stack [u8],
},
RelativeTimeLock {
time: &'desc u32,
},
AbsoluteTimeLock {
time: &'desc u32,
},
}
Expand description
A satisfied Miniscript condition (Signature, Hashlock, Timelock) ’desc represents the lifetime of descriptor and `stack represents the lifetime of witness
Variants
PublicKey
Public key and corresponding signature
PublicKeyHash
PublicKeyHash, corresponding pubkey and signature
HashLock
Hashlock and preimage for SHA256
RelativeTimeLock
Fields
time: &'desc u32
Relative Timelock for CSV.
AbsoluteTimeLock
Fields
time: &'desc u32
Absolute Timelock for CLTV.
Trait Implementations
sourceimpl<'desc, 'stack> Clone for SatisfiedConstraint<'desc, 'stack>
impl<'desc, 'stack> Clone for SatisfiedConstraint<'desc, 'stack>
sourcefn clone(&self) -> SatisfiedConstraint<'desc, 'stack>
fn clone(&self) -> SatisfiedConstraint<'desc, 'stack>
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<'desc, 'stack> Debug for SatisfiedConstraint<'desc, 'stack>
impl<'desc, 'stack> Debug for SatisfiedConstraint<'desc, 'stack>
sourceimpl<'desc, 'stack> PartialEq<SatisfiedConstraint<'desc, 'stack>> for SatisfiedConstraint<'desc, 'stack>
impl<'desc, 'stack> PartialEq<SatisfiedConstraint<'desc, 'stack>> for SatisfiedConstraint<'desc, 'stack>
sourcefn eq(&self, other: &SatisfiedConstraint<'desc, 'stack>) -> bool
fn eq(&self, other: &SatisfiedConstraint<'desc, 'stack>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SatisfiedConstraint<'desc, 'stack>) -> bool
fn ne(&self, other: &SatisfiedConstraint<'desc, 'stack>) -> bool
This method tests for !=
.
impl<'desc, 'stack> Copy for SatisfiedConstraint<'desc, 'stack>
impl<'desc, 'stack> Eq for SatisfiedConstraint<'desc, 'stack>
impl<'desc, 'stack> StructuralEq for SatisfiedConstraint<'desc, 'stack>
impl<'desc, 'stack> StructuralPartialEq for SatisfiedConstraint<'desc, 'stack>
Auto Trait Implementations
impl<'desc, 'stack> RefUnwindSafe for SatisfiedConstraint<'desc, 'stack>
impl<'desc, 'stack> Send for SatisfiedConstraint<'desc, 'stack>
impl<'desc, 'stack> Sync for SatisfiedConstraint<'desc, 'stack>
impl<'desc, 'stack> Unpin for SatisfiedConstraint<'desc, 'stack>
impl<'desc, 'stack> UnwindSafe for SatisfiedConstraint<'desc, 'stack>
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more