Struct iop_keyvault_wasm::JsBip44PublicKey
source · [−]pub struct JsBip44PublicKey { /* private fields */ }
Expand description
Represents a public key with a given index within a sub-account used on the chain for verifying signatures or validating key identifiers.
Implementations
sourceimpl JsBip44PublicKey
impl JsBip44PublicKey
sourcepub fn node(&self) -> JsBip32PublicNode
pub fn node(&self) -> JsBip32PublicNode
Returns the underlying {@link Bip32PublicNode}.
sourcepub fn to_public_key(&self) -> JsSecpPublicKey
pub fn to_public_key(&self) -> JsSecpPublicKey
Creates the public key for verifying authentications done by this key.
sourcepub fn to_key_id(&self) -> JsSecpKeyId
pub fn to_key_id(&self) -> JsSecpKeyId
Creates the key identifier for the public key. This is an extra layer of security for single-use keys, so the revealing of the public key can be delayed to the point when the authenticated action (spending some coin or revoking access) makes the public key irrelevant after the action is successful.
This method chooses the right algorithm used for creating key identifiers on the given network.
sourcepub fn bip32_path(&self) -> String
pub fn bip32_path(&self) -> String
Accessor for the BIP32 path of the sub-account.
sourcepub fn to_p2pkh_addr(&self) -> String
pub fn to_p2pkh_addr(&self) -> String
Returns the P2PKH address that belongs key with the version byte of the network.
Trait Implementations
sourceimpl Clone for JsBip44PublicKey
impl Clone for JsBip44PublicKey
sourcefn clone(&self) -> JsBip44PublicKey
fn clone(&self) -> JsBip44PublicKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for JsBip44PublicKey
impl Debug for JsBip44PublicKey
sourceimpl From<Bip44PublicKey<Secp256k1>> for JsBip44PublicKey
impl From<Bip44PublicKey<Secp256k1>> for JsBip44PublicKey
sourcefn from(inner: Bip44PublicKey<Secp256k1>) -> Self
fn from(inner: Bip44PublicKey<Secp256k1>) -> Self
Converts to this type from the input type.
sourceimpl From<JsBip44PublicKey> for JsValue
impl From<JsBip44PublicKey> for JsValue
sourcefn from(value: JsBip44PublicKey) -> Self
fn from(value: JsBip44PublicKey) -> Self
Converts to this type from the input type.
sourceimpl FromWasmAbi for JsBip44PublicKey
impl FromWasmAbi for JsBip44PublicKey
sourceimpl IntoWasmAbi for JsBip44PublicKey
impl IntoWasmAbi for JsBip44PublicKey
sourceimpl OptionFromWasmAbi for JsBip44PublicKey
impl OptionFromWasmAbi for JsBip44PublicKey
sourceimpl OptionIntoWasmAbi for JsBip44PublicKey
impl OptionIntoWasmAbi for JsBip44PublicKey
sourceimpl RefFromWasmAbi for JsBip44PublicKey
impl RefFromWasmAbi for JsBip44PublicKey
type Anchor = Ref<'static, JsBip44PublicKey>
type Anchor = Ref<'static, JsBip44PublicKey>
The type that holds the reference to Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read more
sourceunsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
Recover a Self::Anchor
from Self::Abi
. Read more
sourceimpl RefMutFromWasmAbi for JsBip44PublicKey
impl RefMutFromWasmAbi for JsBip44PublicKey
type Anchor = RefMut<'static, JsBip44PublicKey>
type Anchor = RefMut<'static, JsBip44PublicKey>
Same as RefFromWasmAbi::Anchor
sourceunsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as RefFromWasmAbi::ref_from_abi
sourceimpl WasmDescribe for JsBip44PublicKey
impl WasmDescribe for JsBip44PublicKey
sourceimpl Wraps<Bip44PublicKey<Secp256k1>> for JsBip44PublicKey
impl Wraps<Bip44PublicKey<Secp256k1>> for JsBip44PublicKey
sourcefn inner(&self) -> &Bip44PublicKey<Secp256k1>
fn inner(&self) -> &Bip44PublicKey<Secp256k1>
Converts a reference to a WASM type to a reference to the underlying Rust type.
Auto Trait Implementations
impl !RefUnwindSafe for JsBip44PublicKey
impl !Send for JsBip44PublicKey
impl !Sync for JsBip44PublicKey
impl Unpin for JsBip44PublicKey
impl !UnwindSafe for JsBip44PublicKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcefn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more