pub struct BIP32PubkeyProvider { /* private fields */ }
Expand description
| An object representing a parsed extended | public key in a descriptor. |
Implementations§
source§impl BIP32PubkeyProvider
impl BIP32PubkeyProvider
pub fn get_ext_key(&self, arg: &SigningProvider, ret: &mut ExtKey) -> bool
sourcepub fn get_derived_ext_key(
&self,
arg: &SigningProvider,
xprv: &mut ExtKey,
last_hardened: &mut ExtKey
) -> bool
pub fn get_derived_ext_key( &self, arg: &SigningProvider, xprv: &mut ExtKey, last_hardened: &mut ExtKey ) -> bool
| Derives the last xprv |
pub fn is_hardened(&self) -> bool
pub fn new( exp_index: u32, extkey: &ExtPubKey, path: KeyPath, derive: DeriveType ) -> Self
pub fn get_size(&self) -> usize
pub fn get_pub_key( &self, pos: i32, arg: &SigningProvider, key_out: &mut PubKey, final_info_out: &mut KeyOriginInfo, read_cache: Option<*const DescriptorCache>, write_cache: Option<*mut DescriptorCache> ) -> bool
pub fn to_private_string(&self, arg: &SigningProvider, out: &mut String) -> bool
pub fn get_priv_key( &self, pos: i32, arg: &SigningProvider, key: &mut Key ) -> bool
Trait Implementations§
source§impl ToNormalizedString for BIP32PubkeyProvider
impl ToNormalizedString for BIP32PubkeyProvider
source§fn to_normalized_string(
&self,
arg: &SigningProvider,
out: &mut String,
cache: *const DescriptorCache
) -> bool
fn to_normalized_string( &self, arg: &SigningProvider, out: &mut String, cache: *const DescriptorCache ) -> bool
| Convert the descriptor to a normalized
| string. Normalized descriptors have
| the xpub at the last hardened step. This
| fails if the provided provider does
| not have the private keys to derive that
| xpub.
| Read more
Auto Trait Implementations§
impl RefUnwindSafe for BIP32PubkeyProvider
impl Send for BIP32PubkeyProvider
impl Sync for BIP32PubkeyProvider
impl Unpin for BIP32PubkeyProvider
impl UnwindSafe for BIP32PubkeyProvider
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more