Struct sapio_miniscript::descriptor::Wsh [−][src]
A Segwitv0 wsh descriptor
Implementations
impl<Pk: MiniscriptKey> Wsh<Pk>
[src]
pub fn into_inner(self) -> WshInner<Pk>
[src]
Get the Inner
pub fn as_inner(&self) -> &WshInner<Pk>
[src]
Get a reference to inner
pub fn new(ms: Miniscript<Pk, Segwitv0>) -> Result<Self, Error>
[src]
Create a new wsh descriptor
pub fn new_sortedmulti(k: usize, pks: Vec<Pk>) -> Result<Self, Error>
[src]
Create a new sortedmulti wsh descriptor
pub fn to_string_no_checksum(&self) -> String
[src]
Get the descriptor without the checksum
Trait Implementations
impl<Pk: Clone + MiniscriptKey> Clone for Wsh<Pk>
[src]
impl<Pk: MiniscriptKey> Debug for Wsh<Pk>
[src]
impl<Pk: MiniscriptKey> DescriptorTrait<Pk> for Wsh<Pk>
[src]
fn sanity_check(&self) -> Result<(), Error>
[src]
fn address(&self, network: Network) -> Result<Address, Error> where
Pk: ToPublicKey,
[src]
Pk: ToPublicKey,
fn script_pubkey(&self) -> Script where
Pk: ToPublicKey,
[src]
Pk: ToPublicKey,
fn unsigned_script_sig(&self) -> Script where
Pk: ToPublicKey,
[src]
Pk: ToPublicKey,
fn explicit_script(&self) -> Script where
Pk: ToPublicKey,
[src]
Pk: ToPublicKey,
fn get_satisfaction<S>(
&self,
satisfier: S
) -> Result<(Vec<Vec<u8>>, Script), Error> where
Pk: ToPublicKey,
S: Satisfier<Pk>,
[src]
&self,
satisfier: S
) -> Result<(Vec<Vec<u8>>, Script), Error> where
Pk: ToPublicKey,
S: Satisfier<Pk>,
fn max_satisfaction_weight(&self) -> Result<usize, Error>
[src]
fn script_code(&self) -> Script where
Pk: ToPublicKey,
[src]
Pk: ToPublicKey,
fn satisfy<S>(&self, txin: &mut TxIn, satisfier: S) -> Result<(), Error> where
Pk: ToPublicKey,
S: Satisfier<Pk>,
[src]
Pk: ToPublicKey,
S: Satisfier<Pk>,
impl<Pk: MiniscriptKey> Display for Wsh<Pk>
[src]
impl<Pk: Eq + MiniscriptKey> Eq for Wsh<Pk>
[src]
impl<Pk: MiniscriptKey> ForEachKey<Pk> for Wsh<Pk>
[src]
fn for_each_key<'a, F: FnMut(ForEach<'a, Pk>) -> bool>(
&'a self,
pred: F
) -> bool where
Pk: 'a,
Pk::Hash: 'a,
[src]
&'a self,
pred: F
) -> bool where
Pk: 'a,
Pk::Hash: 'a,
fn for_any_key<'a, F: FnMut(ForEach<'a, Pk>) -> bool>(&'a self, pred: F) -> bool where
Pk: 'a,
Pk::Hash: 'a,
[src]
Pk: 'a,
Pk::Hash: 'a,
impl<Pk> FromStr for Wsh<Pk> where
Pk: MiniscriptKey + FromStr,
Pk::Hash: FromStr,
<Pk as FromStr>::Err: ToString,
<<Pk as MiniscriptKey>::Hash as FromStr>::Err: ToString,
[src]
Pk: MiniscriptKey + FromStr,
Pk::Hash: FromStr,
<Pk as FromStr>::Err: ToString,
<<Pk as MiniscriptKey>::Hash as FromStr>::Err: ToString,
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl<Pk> FromTree for Wsh<Pk> where
Pk: MiniscriptKey + FromStr,
Pk::Hash: FromStr,
<Pk as FromStr>::Err: ToString,
<<Pk as MiniscriptKey>::Hash as FromStr>::Err: ToString,
[src]
Pk: MiniscriptKey + FromStr,
Pk::Hash: FromStr,
<Pk as FromStr>::Err: ToString,
<<Pk as MiniscriptKey>::Hash as FromStr>::Err: ToString,
impl<Pk: MiniscriptKey> Liftable<Pk> for Wsh<Pk>
[src]
impl<Pk: Ord + MiniscriptKey> Ord for Wsh<Pk>
[src]
fn cmp(&self, other: &Wsh<Pk>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<Pk: PartialEq + MiniscriptKey> PartialEq<Wsh<Pk>> for Wsh<Pk>
[src]
impl<Pk: PartialOrd + MiniscriptKey> PartialOrd<Wsh<Pk>> for Wsh<Pk>
[src]
fn partial_cmp(&self, other: &Wsh<Pk>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<Pk: MiniscriptKey> StructuralEq for Wsh<Pk>
[src]
impl<Pk: MiniscriptKey> StructuralPartialEq for Wsh<Pk>
[src]
impl<P: MiniscriptKey, Q: MiniscriptKey> TranslatePk<P, Q> for Wsh<P>
[src]
type Output = Wsh<Q>
The associated output type. This must be Self
fn translate_pk<Fpk, Fpkh, E>(
&self,
translatefpk: Fpk,
translatefpkh: Fpkh
) -> Result<Self::Output, E> where
Fpk: FnMut(&P) -> Result<Q, E>,
Fpkh: FnMut(&P::Hash) -> Result<Q::Hash, E>,
Q: MiniscriptKey,
[src]
&self,
translatefpk: Fpk,
translatefpkh: Fpkh
) -> Result<Self::Output, E> where
Fpk: FnMut(&P) -> Result<Q, E>,
Fpkh: FnMut(&P::Hash) -> Result<Q::Hash, E>,
Q: MiniscriptKey,
fn translate_pk_infallible<Fpk, Fpkh>(
&self,
translatefpk: Fpk,
translatefpkh: Fpkh
) -> Self::Output where
Fpk: FnMut(&P) -> Q,
Fpkh: FnMut(&P::Hash) -> Q::Hash,
[src]
&self,
translatefpk: Fpk,
translatefpkh: Fpkh
) -> Self::Output where
Fpk: FnMut(&P) -> Q,
Fpkh: FnMut(&P::Hash) -> Q::Hash,
Auto Trait Implementations
impl<Pk> RefUnwindSafe for Wsh<Pk> where
Pk: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash: RefUnwindSafe,
Pk: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash: RefUnwindSafe,
impl<Pk> Send for Wsh<Pk> where
Pk: Send + Sync,
<Pk as MiniscriptKey>::Hash: Send + Sync,
Pk: Send + Sync,
<Pk as MiniscriptKey>::Hash: Send + Sync,
impl<Pk> Sync for Wsh<Pk> where
Pk: Send + Sync,
<Pk as MiniscriptKey>::Hash: Send + Sync,
Pk: Send + Sync,
<Pk as MiniscriptKey>::Hash: Send + Sync,
impl<Pk> Unpin for Wsh<Pk> where
Pk: Unpin,
<Pk as MiniscriptKey>::Hash: Unpin,
Pk: Unpin,
<Pk as MiniscriptKey>::Hash: Unpin,
impl<Pk> UnwindSafe for Wsh<Pk> where
Pk: RefUnwindSafe + UnwindSafe,
<Pk as MiniscriptKey>::Hash: RefUnwindSafe + UnwindSafe,
Pk: RefUnwindSafe + UnwindSafe,
<Pk as MiniscriptKey>::Hash: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<P, Q, T> TranslatePk1<P, Q> for T where
P: MiniscriptKey,
Q: MiniscriptKey<Hash = <P as MiniscriptKey>::Hash>,
T: TranslatePk<P, Q>,
[src]
P: MiniscriptKey,
Q: MiniscriptKey<Hash = <P as MiniscriptKey>::Hash>,
T: TranslatePk<P, Q>,
fn translate_pk1<Fpk, E>(&self, translatefpk: Fpk) -> Result<Self::Output, E> where
Fpk: FnMut(&P) -> Result<Q, E>,
[src]
Fpk: FnMut(&P) -> Result<Q, E>,
fn translate_pk1_infallible<Fpk: FnMut(&P) -> Q>(
&self,
translatefpk: Fpk
) -> Self::Output
[src]
&self,
translatefpk: Fpk
) -> Self::Output
impl<P, Q, T> TranslatePk2<P, Q> for T where
P: MiniscriptKey<Hash = P>,
Q: MiniscriptKey,
T: TranslatePk<P, Q>,
[src]
P: MiniscriptKey<Hash = P>,
Q: MiniscriptKey,
T: TranslatePk<P, Q>,
fn translate_pk2<Fpk: Fn(&P) -> Result<Q, E>, E>(
&self,
translatefpk: Fpk
) -> Result<Self::Output, E>
[src]
&self,
translatefpk: Fpk
) -> Result<Self::Output, E>
fn translate_pk2_infallible<Fpk: Fn(&P) -> Q>(
&self,
translatefpk: Fpk
) -> Self::Output
[src]
&self,
translatefpk: Fpk
) -> Self::Output
impl<P, Q, T> TranslatePk3<P, Q> for T where
P: MiniscriptKey + ToPublicKey,
Q: MiniscriptKey<Hash = Hash>,
T: TranslatePk<P, Q>,
[src]
P: MiniscriptKey + ToPublicKey,
Q: MiniscriptKey<Hash = Hash>,
T: TranslatePk<P, Q>,
fn translate_pk3<Fpk, E>(&self, translatefpk: Fpk) -> Result<Self::Output, E> where
Fpk: FnMut(&P) -> Result<Q, E>,
[src]
Fpk: FnMut(&P) -> Result<Q, E>,
fn translate_pk3_infallible<Fpk: FnMut(&P) -> Q>(
&self,
translatefpk: Fpk
) -> Self::Output
[src]
&self,
translatefpk: Fpk
) -> Self::Output
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,