Struct iop_keyvault_wasm::JsBip44Key
source · [−]pub struct JsBip44Key { /* private fields */ }
Expand description
Represents the private API of a key with a given index within a sub-account used on the chain for storing balance or authenticating actions.
Implementations
sourceimpl JsBip44Key
impl JsBip44Key
sourcepub fn node(&self) -> JsBip32Node
pub fn node(&self) -> JsBip32Node
Returns the underlying {@link Bip32Node}.
sourcepub fn to_private_key(&self) -> JsSecpPrivateKey
pub fn to_private_key(&self) -> JsSecpPrivateKey
Creates the private key for authenticating actions.
sourcepub fn bip32_path(&self) -> String
pub fn bip32_path(&self) -> String
Accessor for the BIP32 path of the sub-account.
sourcepub fn neuter(&self) -> JsBip44PublicKey
pub fn neuter(&self) -> JsBip44PublicKey
Neuters the key and converts it into its public API
Trait Implementations
sourceimpl Clone for JsBip44Key
impl Clone for JsBip44Key
sourcefn clone(&self) -> JsBip44Key
fn clone(&self) -> JsBip44Key
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 JsBip44Key
impl Debug for JsBip44Key
sourceimpl From<Bip44Key<Secp256k1>> for JsBip44Key
impl From<Bip44Key<Secp256k1>> for JsBip44Key
sourceimpl From<JsBip44Key> for JsValue
impl From<JsBip44Key> for JsValue
sourcefn from(value: JsBip44Key) -> Self
fn from(value: JsBip44Key) -> Self
Converts to this type from the input type.
sourceimpl FromWasmAbi for JsBip44Key
impl FromWasmAbi for JsBip44Key
sourceimpl IntoWasmAbi for JsBip44Key
impl IntoWasmAbi for JsBip44Key
sourceimpl OptionFromWasmAbi for JsBip44Key
impl OptionFromWasmAbi for JsBip44Key
sourceimpl OptionIntoWasmAbi for JsBip44Key
impl OptionIntoWasmAbi for JsBip44Key
sourceimpl RefFromWasmAbi for JsBip44Key
impl RefFromWasmAbi for JsBip44Key
type Anchor = Ref<'static, JsBip44Key>
type Anchor = Ref<'static, JsBip44Key>
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 JsBip44Key
impl RefMutFromWasmAbi for JsBip44Key
type Anchor = RefMut<'static, JsBip44Key>
type Anchor = RefMut<'static, JsBip44Key>
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 JsBip44Key
impl WasmDescribe for JsBip44Key
Auto Trait Implementations
impl !RefUnwindSafe for JsBip44Key
impl !Send for JsBip44Key
impl !Sync for JsBip44Key
impl Unpin for JsBip44Key
impl !UnwindSafe for JsBip44Key
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