pub struct JsBip44PublicSubAccount { /* private fields */ }
Expand description
Public 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 JsBip44PublicSubAccount
impl JsBip44PublicSubAccount
sourcepub fn node(&self) -> JsBip32PublicNode
pub fn node(&self) -> JsBip32PublicNode
Returns the underlying {@link Bip32PublicNode}.
sourcepub fn key(&self, idx: i32) -> Result<JsBip44PublicKey, JsValue>
pub fn key(&self, idx: i32) -> Result<JsBip44PublicKey, 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.
Trait Implementations
sourceimpl Clone for JsBip44PublicSubAccount
impl Clone for JsBip44PublicSubAccount
sourcefn clone(&self) -> JsBip44PublicSubAccount
fn clone(&self) -> JsBip44PublicSubAccount
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 JsBip44PublicSubAccount
impl Debug for JsBip44PublicSubAccount
sourceimpl From<Bip44PublicSubAccount<Secp256k1>> for JsBip44PublicSubAccount
impl From<Bip44PublicSubAccount<Secp256k1>> for JsBip44PublicSubAccount
sourcefn from(inner: Bip44PublicSubAccount<Secp256k1>) -> Self
fn from(inner: Bip44PublicSubAccount<Secp256k1>) -> Self
Converts to this type from the input type.
sourceimpl From<JsBip44PublicSubAccount> for JsValue
impl From<JsBip44PublicSubAccount> for JsValue
sourcefn from(value: JsBip44PublicSubAccount) -> Self
fn from(value: JsBip44PublicSubAccount) -> Self
Converts to this type from the input type.
sourceimpl FromWasmAbi for JsBip44PublicSubAccount
impl FromWasmAbi for JsBip44PublicSubAccount
sourceimpl IntoWasmAbi for JsBip44PublicSubAccount
impl IntoWasmAbi for JsBip44PublicSubAccount
sourceimpl RefFromWasmAbi for JsBip44PublicSubAccount
impl RefFromWasmAbi for JsBip44PublicSubAccount
type Anchor = Ref<'static, JsBip44PublicSubAccount>
type Anchor = Ref<'static, JsBip44PublicSubAccount>
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 JsBip44PublicSubAccount
impl RefMutFromWasmAbi for JsBip44PublicSubAccount
type Anchor = RefMut<'static, JsBip44PublicSubAccount>
type Anchor = RefMut<'static, JsBip44PublicSubAccount>
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 JsBip44PublicSubAccount
impl WasmDescribe for JsBip44PublicSubAccount
sourceimpl Wraps<Bip44PublicSubAccount<Secp256k1>> for JsBip44PublicSubAccount
impl Wraps<Bip44PublicSubAccount<Secp256k1>> for JsBip44PublicSubAccount
sourcefn inner(&self) -> &Bip44PublicSubAccount<Secp256k1>
fn inner(&self) -> &Bip44PublicSubAccount<Secp256k1>
Converts a reference to a WASM type to a reference to the underlying Rust type.
Auto Trait Implementations
impl !RefUnwindSafe for JsBip44PublicSubAccount
impl !Send for JsBip44PublicSubAccount
impl !Sync for JsBip44PublicSubAccount
impl Unpin for JsBip44PublicSubAccount
impl !UnwindSafe for JsBip44PublicSubAccount
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