[−][src]Struct miniscript::descriptor::DescriptorPublicKeyCtx
Context information for deriving a public key from DescriptorPublicKey
Implementations
impl<'secp, C: Verification> DescriptorPublicKeyCtx<'secp, C>
[src]
pub fn new(secp_ctx: &'secp Secp256k1<C>, child_number: ChildNumber) -> Self
[src]
Create a new context
Trait Implementations
impl<'secp, C: Verification> Clone for DescriptorPublicKeyCtx<'secp, C>
[src]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'secp, C: Verification> Copy for DescriptorPublicKeyCtx<'secp, C>
[src]
impl<'secp, C: Debug + 'secp + Verification> Debug for DescriptorPublicKeyCtx<'secp, C>
[src]
impl<'secp, C: Verification> ToPublicKey<DescriptorPublicKeyCtx<'secp, C>> for DescriptorPublicKey
[src]
pub fn to_public_key(
&self,
to_pk_ctx: DescriptorPublicKeyCtx<'secp, C>
) -> PublicKey
[src]
&self,
to_pk_ctx: DescriptorPublicKeyCtx<'secp, C>
) -> PublicKey
pub fn hash_to_hash160(
hash: &Self::Hash,
to_pk_ctx: DescriptorPublicKeyCtx<'secp, C>
) -> Hash
[src]
hash: &Self::Hash,
to_pk_ctx: DescriptorPublicKeyCtx<'secp, C>
) -> Hash
pub fn serialized_len(&self, to_pk_ctx: ToPkCtx) -> usize
[src]
Auto Trait Implementations
impl<'secp, C> RefUnwindSafe for DescriptorPublicKeyCtx<'secp, C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<'secp, C> Send for DescriptorPublicKeyCtx<'secp, C>
impl<'secp, C> Sync for DescriptorPublicKeyCtx<'secp, C>
impl<'secp, C> Unpin for DescriptorPublicKeyCtx<'secp, C>
impl<'secp, C> UnwindSafe for DescriptorPublicKeyCtx<'secp, C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
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, 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>,