[][src]Enum miniscript::miniscript::types::malleability::Dissat

pub enum Dissat {
    None,
    Unique,
    Unknown,
}

Whether the fragment has a dissatisfaction, and if so, whether it is unique. Affects both correctness and malleability-freeness, since we assume 3rd parties are able to produce dissatisfactions for all fragments.

Variants

None

Fragment has no dissatisfactions and will abort given non-satisfying input.

Unique

Fragment has a unique dissatisfaction, which is always available, and will push 0 given this dissatisfaction as input. The combination of Dissat::Unique and Input::Zero implies that a fragment is impossible to satisfy (is a 0 or equivalent).

Unknown

No assumptions may be made about dissatisfying this fragment. This does not necessarily mean that there are multiple dissatisfactions; there may be none, or none that are always available (e.g. for a pk_h the key preimage may not be available).

Trait Implementations

impl Clone for Dissat[src]

impl Copy for Dissat[src]

impl Debug for Dissat[src]

impl Eq for Dissat[src]

impl Hash for Dissat[src]

impl Ord for Dissat[src]

impl PartialEq<Dissat> for Dissat[src]

impl PartialOrd<Dissat> for Dissat[src]

impl StructuralEq for Dissat[src]

impl StructuralPartialEq for Dissat[src]

Auto Trait Implementations

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.