Enum sapio_miniscript::interpreter::SatisfiedConstraint[][src]

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

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 of PublicKey

key: &'intp PublicKey

The bitcoin key

sig: Signature

corresponding signature

PublicKeyHash

PublicKeyHash, corresponding pubkey and signature

Fields of PublicKeyHash

keyhash: &'intp Hash

The pubkey hash

key: PublicKey

Corresponding public key

sig: Signature

Corresponding signature for the hash

HashLock

Hashlock and preimage for SHA256

Fields of HashLock

hash: HashLockType<'intp>

The type of Hashlock

preimage: &'txin [u8]

The preimage used for satisfaction

RelativeTimeLock

Relative Timelock for CSV.

Fields of RelativeTimeLock

time: &'intp u32

The value of RelativeTimelock

AbsoluteTimeLock

Absolute Timelock for CLTV.

Fields of AbsoluteTimeLock

time: &'intp u32

The value of Absolute timelock

Trait Implementations

impl<'intp, 'txin> Clone for SatisfiedConstraint<'intp, 'txin>[src]

impl<'intp, 'txin> Copy for SatisfiedConstraint<'intp, 'txin>[src]

impl<'intp, 'txin> Debug for SatisfiedConstraint<'intp, 'txin>[src]

impl<'intp, 'txin> Eq for SatisfiedConstraint<'intp, 'txin>[src]

impl<'intp, 'txin> PartialEq<SatisfiedConstraint<'intp, 'txin>> for SatisfiedConstraint<'intp, 'txin>[src]

impl<'intp, 'txin> StructuralEq for SatisfiedConstraint<'intp, 'txin>[src]

impl<'intp, 'txin> StructuralPartialEq for SatisfiedConstraint<'intp, 'txin>[src]

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

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.