pub struct DescriptorPublicKey(/* private fields */);Expand description
A descriptor public key.
Implementations§
Source§impl DescriptorPublicKey
impl DescriptorPublicKey
Sourcepub fn from_string(public_key: String) -> Result<Self, DescriptorKeyError>
pub fn from_string(public_key: String) -> Result<Self, DescriptorKeyError>
Attempt to parse a string as a descriptor public key.
Sourcepub fn derive(
&self,
path: &DerivationPath,
) -> Result<Arc<Self>, DescriptorKeyError>
pub fn derive( &self, path: &DerivationPath, ) -> Result<Arc<Self>, DescriptorKeyError>
Derive the descriptor public key at the given derivation path.
Sourcepub fn extend(
&self,
path: &DerivationPath,
) -> Result<Arc<Self>, DescriptorKeyError>
pub fn extend( &self, path: &DerivationPath, ) -> Result<Arc<Self>, DescriptorKeyError>
Extend the descriptor public key by the given derivation path.
Sourcepub fn is_multipath(&self) -> bool
pub fn is_multipath(&self) -> bool
Whether or not this key has multiple derivation paths.
Sourcepub fn master_fingerprint(&self) -> String
pub fn master_fingerprint(&self) -> String
The fingerprint of the master key associated with this key, 0x00000000 if none.
Trait Implementations§
Source§impl Debug for DescriptorPublicKey
impl Debug for DescriptorPublicKey
Source§impl Display for DescriptorPublicKey
impl Display for DescriptorPublicKey
Source§impl<UT> LiftRef<UT> for DescriptorPublicKey
impl<UT> LiftRef<UT> for DescriptorPublicKey
type LiftType = Arc<DescriptorPublicKey>
Source§impl<UT> LowerError<UT> for DescriptorPublicKey
impl<UT> LowerError<UT> for DescriptorPublicKey
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for DescriptorPublicKey
impl<UT> LowerReturn<UT> for DescriptorPublicKey
Source§type ReturnType = <Arc<DescriptorPublicKey> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<DescriptorPublicKey> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl<UT> TypeId<UT> for DescriptorPublicKey
impl<UT> TypeId<UT> for DescriptorPublicKey
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for DescriptorPublicKey
impl RefUnwindSafe for DescriptorPublicKey
impl Send for DescriptorPublicKey
impl Sync for DescriptorPublicKey
impl Unpin for DescriptorPublicKey
impl UnwindSafe for DescriptorPublicKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more