Enum sapio_miniscript::miniscript::analyzable::AnalysisError[][src]

pub enum AnalysisError {
    SiglessBranch,
    RepeatedPubkeys,
    BranchExceedResouceLimits,
    HeightTimeLockCombination,
    Malleable,
}

Possible reasons Miniscript guarantees can fail We currently mark Miniscript as Non-Analyzable if

  1. It is unsafe(does not require a digital signature to spend it)
  2. It contains a unspendable path because of either a. Resource limitations b. Timelock Mixing
  3. The script is malleable and thereby some of satisfaction weight guarantees are not satisfied.
  4. It has repeated publickeys

Variants

SiglessBranch

Top level is not safe.

RepeatedPubkeys

Repeated Pubkeys

BranchExceedResouceLimits

Miniscript contains at least one path that exceeds resource limits

HeightTimeLockCombination

Contains a combination of heightlock and timelock

Malleable

Malleable script

Trait Implementations

impl Debug for AnalysisError[src]

impl Display for AnalysisError[src]

impl Error for AnalysisError[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> ToString for T where
    T: Display + ?Sized
[src]

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.