[][src]Struct miniscript::descriptor::Sh

pub struct Sh<Pk: MiniscriptKey> { /* fields omitted */ }

A Legacy p2sh Descriptor

Implementations

impl<Pk: MiniscriptKey> Sh<Pk>[src]

pub fn new(ms: Miniscript<Pk, Legacy>) -> Result<Self, Error>[src]

Create a new p2sh descriptor with the raw miniscript

pub fn new_sortedmulti(k: usize, pks: Vec<Pk>) -> Result<Self, Error>[src]

Create a new p2sh sortedmulti descriptor with threshold k and Vec of pks.

pub fn new_wsh(ms: Miniscript<Pk, Segwitv0>) -> Result<Self, Error>[src]

Create a new p2sh wrapped wsh descriptor with the raw miniscript

pub fn new_wsh_sortedmulti(k: usize, pks: Vec<Pk>) -> Result<Self, Error>[src]

Create a new p2sh wrapped wsh sortedmulti descriptor from threshold k and Vec of pks

pub fn new_wpkh(pk: Pk) -> Result<Self, Error>[src]

Create a new p2sh wrapped wpkh from Pk

Trait Implementations

impl<Pk: Clone + MiniscriptKey> Clone for Sh<Pk>[src]

impl<Pk: MiniscriptKey> Debug for Sh<Pk>[src]

impl<Pk: MiniscriptKey> DescriptorTrait<Pk> for Sh<Pk>[src]

impl<Pk: MiniscriptKey> Display for Sh<Pk>[src]

impl<Pk: Eq + MiniscriptKey> Eq for Sh<Pk>[src]

impl<Pk: MiniscriptKey> ForEachKey<Pk> for Sh<Pk>[src]

impl<Pk> FromStr for Sh<Pk> where
    Pk: MiniscriptKey + FromStr,
    Pk::Hash: FromStr,
    <Pk as FromStr>::Err: ToString,
    <<Pk as MiniscriptKey>::Hash as FromStr>::Err: ToString
[src]

type Err = Error

The associated error which can be returned from parsing.

impl<Pk> FromTree for Sh<Pk> where
    Pk: MiniscriptKey + FromStr,
    Pk::Hash: FromStr,
    <Pk as FromStr>::Err: ToString,
    <<Pk as MiniscriptKey>::Hash as FromStr>::Err: ToString
[src]

impl<Pk: MiniscriptKey> Liftable<Pk> for Sh<Pk>[src]

impl<Pk: Ord + MiniscriptKey> Ord for Sh<Pk>[src]

impl<Pk: PartialEq + MiniscriptKey> PartialEq<Sh<Pk>> for Sh<Pk>[src]

impl<Pk: PartialOrd + MiniscriptKey> PartialOrd<Sh<Pk>> for Sh<Pk>[src]

impl<Pk: MiniscriptKey> StructuralEq for Sh<Pk>[src]

impl<Pk: MiniscriptKey> StructuralPartialEq for Sh<Pk>[src]

impl<P: MiniscriptKey, Q: MiniscriptKey> TranslatePk<P, Q> for Sh<P>[src]

type Output = Sh<Q>

The associated output type. This must be Self

Auto Trait Implementations

impl<Pk> RefUnwindSafe for Sh<Pk> where
    Pk: RefUnwindSafe,
    <Pk as MiniscriptKey>::Hash: RefUnwindSafe
[src]

impl<Pk> Send for Sh<Pk> where
    Pk: Send + Sync,
    <Pk as MiniscriptKey>::Hash: Send + Sync
[src]

impl<Pk> Sync for Sh<Pk> where
    Pk: Send + Sync,
    <Pk as MiniscriptKey>::Hash: Send + Sync
[src]

impl<Pk> Unpin for Sh<Pk> where
    Pk: Unpin,
    <Pk as MiniscriptKey>::Hash: Unpin
[src]

impl<Pk> UnwindSafe for Sh<Pk> where
    Pk: RefUnwindSafe + UnwindSafe,
    <Pk as MiniscriptKey>::Hash: RefUnwindSafe + UnwindSafe
[src]

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

impl<P, Q, T> TranslatePk1<P, Q> for T where
    P: MiniscriptKey,
    Q: MiniscriptKey<Hash = <P as MiniscriptKey>::Hash>,
    T: TranslatePk<P, Q>, 
[src]

impl<P, Q, T> TranslatePk2<P, Q> for T where
    P: MiniscriptKey<Hash = P>,
    Q: MiniscriptKey,
    T: TranslatePk<P, Q>, 
[src]

impl<P, Q, T> TranslatePk3<P, Q> for T where
    P: MiniscriptKey + ToPublicKey,
    Q: MiniscriptKey<Hash = Hash>,
    T: TranslatePk<P, Q>, 
[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.