[−][src]Struct miniscript::descriptor::Wpkh
A bare Wpkh descriptor at top level
Implementations
impl<Pk: MiniscriptKey> Wpkh<Pk>
[src]
pub fn new(pk: Pk) -> Result<Self, Error>
[src]
Create a new Wpkh descriptor
pub fn into_inner(self) -> Pk
[src]
Get the inner key
pub fn as_inner(&self) -> &Pk
[src]
Get the inner key
pub fn to_string_no_checksum(&self) -> String
[src]
Get the descriptor without the checksum
Trait Implementations
impl<Pk: Clone + MiniscriptKey> Clone for Wpkh<Pk>
[src]
impl<Pk: MiniscriptKey> Debug for Wpkh<Pk>
[src]
impl<Pk: MiniscriptKey> DescriptorTrait<Pk> for Wpkh<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 Wpkh<Pk>
[src]
impl<Pk: Eq + MiniscriptKey> Eq for Wpkh<Pk>
[src]
impl<Pk: MiniscriptKey> ForEachKey<Pk> for Wpkh<Pk>
[src]
fn for_each_key<'a, F: FnMut(ForEach<'a, Pk>) -> bool>(
&'a self,
mut pred: F
) -> bool where
Pk: 'a,
Pk::Hash: 'a,
[src]
&'a self,
mut pred: F
) -> bool where
Pk: 'a,
Pk::Hash: 'a,
fn for_any_key<'a, F: FnMut(ForEach<'a, Pk>) -> bool>(
&'a self,
mut pred: F
) -> bool where
Pk: 'a,
Pk::Hash: 'a,
[src]
&'a self,
mut pred: F
) -> bool where
Pk: 'a,
Pk::Hash: 'a,
impl<Pk> FromStr for Wpkh<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 Wpkh<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 Wpkh<Pk>
[src]
impl<Pk: Ord + MiniscriptKey> Ord for Wpkh<Pk>
[src]
fn cmp(&self, other: &Wpkh<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<Wpkh<Pk>> for Wpkh<Pk>
[src]
impl<Pk: PartialOrd + MiniscriptKey> PartialOrd<Wpkh<Pk>> for Wpkh<Pk>
[src]
fn partial_cmp(&self, other: &Wpkh<Pk>) -> Option<Ordering>
[src]
fn lt(&self, other: &Wpkh<Pk>) -> bool
[src]
fn le(&self, other: &Wpkh<Pk>) -> bool
[src]
fn gt(&self, other: &Wpkh<Pk>) -> bool
[src]
fn ge(&self, other: &Wpkh<Pk>) -> bool
[src]
impl<Pk: MiniscriptKey> StructuralEq for Wpkh<Pk>
[src]
impl<Pk: MiniscriptKey> StructuralPartialEq for Wpkh<Pk>
[src]
impl<P: MiniscriptKey, Q: MiniscriptKey> TranslatePk<P, Q> for Wpkh<P>
[src]
type Output = Wpkh<Q>
The associated output type. This must be Self
fn translate_pk<Fpk, Fpkh, E>(
&self,
mut 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,
mut 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,
mut translatefpk: Fpk,
mut translatefpkh: Fpkh
) -> Self::Output where
Fpk: FnMut(&P) -> Q,
Fpkh: FnMut(&P::Hash) -> Q::Hash,
[src]
&self,
mut translatefpk: Fpk,
mut translatefpkh: Fpkh
) -> Self::Output where
Fpk: FnMut(&P) -> Q,
Fpkh: FnMut(&P::Hash) -> Q::Hash,
Auto Trait Implementations
impl<Pk> RefUnwindSafe for Wpkh<Pk> where
Pk: RefUnwindSafe,
[src]
Pk: RefUnwindSafe,
impl<Pk> Send for Wpkh<Pk> where
Pk: Send,
[src]
Pk: Send,
impl<Pk> Sync for Wpkh<Pk> where
Pk: Sync,
[src]
Pk: Sync,
impl<Pk> Unpin for Wpkh<Pk> where
Pk: Unpin,
[src]
Pk: Unpin,
impl<Pk> UnwindSafe for Wpkh<Pk> where
Pk: UnwindSafe,
[src]
Pk: 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>,