[][src]Enum miniscript::miniscript::types::extra_props::LegacySafe

pub enum LegacySafe {
    LegacySafe,
    SegwitOnly,
}

Whether a fragment is OK to be used in non-segwit scripts

Variants

LegacySafe

The fragment can be used in pre-segwit contexts without concern about malleability attacks/unbounded 3rd-party fee stuffing. This means it has no pk_h constructions (cannot estimate public key size from a hash) and no d:/or_i constructions (cannot control the size of the switch input to OP_IF)

SegwitOnly

This fragment can only be safely used with Segwit

Trait Implementations

impl Clone for LegacySafe[src]

impl Copy for LegacySafe[src]

impl Debug for LegacySafe[src]

impl Eq for LegacySafe[src]

impl Hash for LegacySafe[src]

impl Ord for LegacySafe[src]

impl PartialEq<LegacySafe> for LegacySafe[src]

impl PartialOrd<LegacySafe> for LegacySafe[src]

impl StructuralEq for LegacySafe[src]

impl StructuralPartialEq for LegacySafe[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.