[][src]Enum miniscript::descriptor::SatisfiedConstraint

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,
    },
}

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

Fields of PublicKey

key: &'desc PublicKeysig: Signature
PublicKeyHash

PublicKeyHash, corresponding pubkey and signature

Fields of PublicKeyHash

keyhash: &'desc Hashkey: PublicKeysig: Signature
HashLock

Hashlock and preimage for SHA256

Fields of HashLock

hash: HashLockType<'desc>preimage: &'stack [u8]
RelativeTimeLock

Relative Timelock for CSV.

Fields of RelativeTimeLock

time: &'desc u32
AbsoluteTimeLock

Absolute Timelock for CLTV.

Fields of AbsoluteTimeLock

time: &'desc u32

Trait Implementations

impl<'desc, 'stack> Clone for SatisfiedConstraint<'desc, 'stack>[src]

impl<'desc, 'stack> Copy for SatisfiedConstraint<'desc, 'stack>[src]

impl<'desc, 'stack> Debug for SatisfiedConstraint<'desc, 'stack>[src]

impl<'desc, 'stack> Eq for SatisfiedConstraint<'desc, 'stack>[src]

impl<'desc, 'stack> PartialEq<SatisfiedConstraint<'desc, 'stack>> for SatisfiedConstraint<'desc, 'stack>[src]

impl<'desc, 'stack> StructuralEq for SatisfiedConstraint<'desc, 'stack>[src]

impl<'desc, 'stack> StructuralPartialEq for SatisfiedConstraint<'desc, 'stack>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.