pub struct ConstPubkeyProvider { /* private fields */ }
Expand description
| An object representing a parsed constant | public key in a descriptor. |
Implementations§
source§impl ConstPubkeyProvider
impl ConstPubkeyProvider
pub fn new(exp_index: u32, pubkey: &PubKey, xonly: bool) -> Self
pub fn get_pub_key( &self, pos: i32, arg: &SigningProvider, key: &mut PubKey, info: &mut KeyOriginInfo, read_cache: Option<*const DescriptorCache>, write_cache: Option<*mut DescriptorCache> ) -> bool
pub fn get_size(&self) -> usize
pub fn to_private_string(&self, arg: &SigningProvider, ret: &mut String) -> bool
pub fn get_priv_key( &self, pos: i32, arg: &SigningProvider, key: &mut Key ) -> bool
Trait Implementations§
source§impl ToNormalizedString for ConstPubkeyProvider
impl ToNormalizedString for ConstPubkeyProvider
source§fn to_normalized_string(
&self,
arg: &SigningProvider,
ret: &mut String,
cache: *const DescriptorCache
) -> bool
fn to_normalized_string( &self, arg: &SigningProvider, ret: &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 ConstPubkeyProvider
impl Send for ConstPubkeyProvider
impl Sync for ConstPubkeyProvider
impl Unpin for ConstPubkeyProvider
impl UnwindSafe for ConstPubkeyProvider
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