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§
Source§impl 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§
Source§impl Clone for JsBip44PublicSubAccount
impl Clone for JsBip44PublicSubAccount
Source§fn clone(&self) -> JsBip44PublicSubAccount
fn clone(&self) -> JsBip44PublicSubAccount
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JsBip44PublicSubAccount
impl Debug for JsBip44PublicSubAccount
Source§impl From<Bip44PublicSubAccount<Secp256k1>> for JsBip44PublicSubAccount
impl From<Bip44PublicSubAccount<Secp256k1>> for JsBip44PublicSubAccount
Source§fn from(inner: Bip44PublicSubAccount<Secp256k1>) -> JsBip44PublicSubAccount
fn from(inner: Bip44PublicSubAccount<Secp256k1>) -> JsBip44PublicSubAccount
Converts to this type from the input type.
Source§impl From<JsBip44PublicSubAccount> for JsValue
impl From<JsBip44PublicSubAccount> for JsValue
Source§fn from(value: JsBip44PublicSubAccount) -> JsValue
fn from(value: JsBip44PublicSubAccount) -> JsValue
Converts to this type from the input type.
Source§impl LongRefFromWasmAbi for JsBip44PublicSubAccount
impl LongRefFromWasmAbi for JsBip44PublicSubAccount
Source§type Anchor = RcRef<JsBip44PublicSubAccount>
type Anchor = RcRef<JsBip44PublicSubAccount>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(
js: <JsBip44PublicSubAccount as LongRefFromWasmAbi>::Abi,
) -> <JsBip44PublicSubAccount as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsBip44PublicSubAccount as LongRefFromWasmAbi>::Abi, ) -> <JsBip44PublicSubAccount as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for JsBip44PublicSubAccount
impl OptionFromWasmAbi for JsBip44PublicSubAccount
Source§fn is_none(abi: &<JsBip44PublicSubAccount as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsBip44PublicSubAccount as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None
, and otherwise it will be passed to
FromWasmAbi
.Source§impl OptionIntoWasmAbi for JsBip44PublicSubAccount
impl OptionIntoWasmAbi for JsBip44PublicSubAccount
Source§fn none() -> <JsBip44PublicSubAccount as IntoWasmAbi>::Abi
fn none() -> <JsBip44PublicSubAccount as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None
branch of this option. Read moreSource§impl RefFromWasmAbi for JsBip44PublicSubAccount
impl RefFromWasmAbi for JsBip44PublicSubAccount
Source§type Anchor = RcRef<JsBip44PublicSubAccount>
type Anchor = RcRef<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.Source§unsafe fn ref_from_abi(
js: <JsBip44PublicSubAccount as RefFromWasmAbi>::Abi,
) -> <JsBip44PublicSubAccount as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsBip44PublicSubAccount as RefFromWasmAbi>::Abi, ) -> <JsBip44PublicSubAccount as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for JsBip44PublicSubAccount
impl RefMutFromWasmAbi for JsBip44PublicSubAccount
Source§type Anchor = RcRefMut<JsBip44PublicSubAccount>
type Anchor = RcRefMut<JsBip44PublicSubAccount>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn ref_mut_from_abi(
js: <JsBip44PublicSubAccount as RefMutFromWasmAbi>::Abi,
) -> <JsBip44PublicSubAccount as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsBip44PublicSubAccount as RefMutFromWasmAbi>::Abi, ) -> <JsBip44PublicSubAccount as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl TryFromJsValue for JsBip44PublicSubAccount
impl TryFromJsValue for JsBip44PublicSubAccount
Source§fn try_from_js_value(
value: JsValue,
) -> Result<JsBip44PublicSubAccount, <JsBip44PublicSubAccount as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsBip44PublicSubAccount, <JsBip44PublicSubAccount as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for JsBip44PublicSubAccount
impl VectorFromWasmAbi for JsBip44PublicSubAccount
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsBip44PublicSubAccount as VectorFromWasmAbi>::Abi, ) -> Box<[JsBip44PublicSubAccount]>
Source§impl VectorIntoWasmAbi for JsBip44PublicSubAccount
impl VectorIntoWasmAbi for JsBip44PublicSubAccount
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsBip44PublicSubAccount]>, ) -> <JsBip44PublicSubAccount as VectorIntoWasmAbi>::Abi
Source§impl Wraps<Bip44PublicSubAccount<Secp256k1>> for JsBip44PublicSubAccount
impl Wraps<Bip44PublicSubAccount<Secp256k1>> for JsBip44PublicSubAccount
Source§fn 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 Freeze for JsBip44PublicSubAccount
impl !RefUnwindSafe for JsBip44PublicSubAccount
impl !Send for JsBip44PublicSubAccount
impl !Sync for JsBip44PublicSubAccount
impl Unpin for JsBip44PublicSubAccount
impl !UnwindSafe for JsBip44PublicSubAccount
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn 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
.