Struct iop_keyvault_wasm::JsBip44SubAccount
source · [−]pub struct JsBip44SubAccount { /* private fields */ }
Expand description
Private API for a sub-account of a given account on a given coin that is either used for external keys (receiving addresses) or internal keys (change addresses). Some implementations do not distinguish these and just always use receiving addresses.
Implementations
sourceimpl JsBip44SubAccount
impl JsBip44SubAccount
sourcepub fn node(&self) -> JsBip32Node
pub fn node(&self) -> JsBip32Node
Returns the underlying {@link Bip32Node}.
sourcepub fn key(&self, idx: i32) -> Result<JsBip44Key, JsValue>
pub fn key(&self, idx: i32) -> Result<JsBip44Key, JsValue>
Creates a key with a given index used on the chain for storing balance or 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) -> JsBip44PublicSubAccount
pub fn neuter(&self) -> JsBip44PublicSubAccount
Neuters the sub-account and converts it into its public API
Trait Implementations
sourceimpl Clone for JsBip44SubAccount
impl Clone for JsBip44SubAccount
sourcefn clone(&self) -> JsBip44SubAccount
fn clone(&self) -> JsBip44SubAccount
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 JsBip44SubAccount
impl Debug for JsBip44SubAccount
sourceimpl From<Bip44SubAccount<Secp256k1>> for JsBip44SubAccount
impl From<Bip44SubAccount<Secp256k1>> for JsBip44SubAccount
sourcefn from(inner: Bip44SubAccount<Secp256k1>) -> Self
fn from(inner: Bip44SubAccount<Secp256k1>) -> Self
Converts to this type from the input type.
sourceimpl From<JsBip44SubAccount> for JsValue
impl From<JsBip44SubAccount> for JsValue
sourcefn from(value: JsBip44SubAccount) -> Self
fn from(value: JsBip44SubAccount) -> Self
Converts to this type from the input type.
sourceimpl FromWasmAbi for JsBip44SubAccount
impl FromWasmAbi for JsBip44SubAccount
sourceimpl IntoWasmAbi for JsBip44SubAccount
impl IntoWasmAbi for JsBip44SubAccount
sourceimpl OptionFromWasmAbi for JsBip44SubAccount
impl OptionFromWasmAbi for JsBip44SubAccount
sourceimpl OptionIntoWasmAbi for JsBip44SubAccount
impl OptionIntoWasmAbi for JsBip44SubAccount
sourceimpl RefFromWasmAbi for JsBip44SubAccount
impl RefFromWasmAbi for JsBip44SubAccount
type Anchor = Ref<'static, JsBip44SubAccount>
type Anchor = Ref<'static, JsBip44SubAccount>
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 JsBip44SubAccount
impl RefMutFromWasmAbi for JsBip44SubAccount
type Anchor = RefMut<'static, JsBip44SubAccount>
type Anchor = RefMut<'static, JsBip44SubAccount>
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 JsBip44SubAccount
impl WasmDescribe for JsBip44SubAccount
sourceimpl Wraps<Bip44SubAccount<Secp256k1>> for JsBip44SubAccount
impl Wraps<Bip44SubAccount<Secp256k1>> for JsBip44SubAccount
sourcefn inner(&self) -> &Bip44SubAccount<Secp256k1>
fn inner(&self) -> &Bip44SubAccount<Secp256k1>
Converts a reference to a WASM type to a reference to the underlying Rust type.
Auto Trait Implementations
impl !RefUnwindSafe for JsBip44SubAccount
impl !Send for JsBip44SubAccount
impl !Sync for JsBip44SubAccount
impl Unpin for JsBip44SubAccount
impl !UnwindSafe for JsBip44SubAccount
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