Struct iop_keyvault_wasm::JsBip44PublicAccount
source · [−]pub struct JsBip44PublicAccount { /* private fields */ }
Expand description
Represents the public API of a given account of a given coin in the BIP32 tree.
Implementations
sourceimpl JsBip44PublicAccount
impl JsBip44PublicAccount
sourcepub fn node(&self) -> JsBip32PublicNode
pub fn node(&self) -> JsBip32PublicNode
Returns the underlying {@link Bip32PublicNode}.
sourcepub fn chain(&self, change: bool) -> Result<JsBip44PublicSubAccount, JsValue>
pub fn chain(&self, change: bool) -> Result<JsBip44PublicSubAccount, JsValue>
Creates a sub-account for either external keys (receiving addresses) or internal keys (change addresses). This distinction is a common practice that might help in accounting.
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. By default these keys are made on the receiving sub-account.
sourcepub fn bip32_path(&self) -> String
pub fn bip32_path(&self) -> String
Accessor for the BIP32 path of the account.
Trait Implementations
sourceimpl Clone for JsBip44PublicAccount
impl Clone for JsBip44PublicAccount
sourcefn clone(&self) -> JsBip44PublicAccount
fn clone(&self) -> JsBip44PublicAccount
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 JsBip44PublicAccount
impl Debug for JsBip44PublicAccount
sourceimpl From<Bip44PublicAccount<Secp256k1>> for JsBip44PublicAccount
impl From<Bip44PublicAccount<Secp256k1>> for JsBip44PublicAccount
sourcefn from(inner: Bip44PublicAccount<Secp256k1>) -> Self
fn from(inner: Bip44PublicAccount<Secp256k1>) -> Self
Converts to this type from the input type.
sourceimpl From<JsBip44PublicAccount> for JsValue
impl From<JsBip44PublicAccount> for JsValue
sourcefn from(value: JsBip44PublicAccount) -> Self
fn from(value: JsBip44PublicAccount) -> Self
Converts to this type from the input type.
sourceimpl FromWasmAbi for JsBip44PublicAccount
impl FromWasmAbi for JsBip44PublicAccount
sourceimpl IntoWasmAbi for JsBip44PublicAccount
impl IntoWasmAbi for JsBip44PublicAccount
sourceimpl RefFromWasmAbi for JsBip44PublicAccount
impl RefFromWasmAbi for JsBip44PublicAccount
type Anchor = Ref<'static, JsBip44PublicAccount>
type Anchor = Ref<'static, JsBip44PublicAccount>
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 JsBip44PublicAccount
impl RefMutFromWasmAbi for JsBip44PublicAccount
type Anchor = RefMut<'static, JsBip44PublicAccount>
type Anchor = RefMut<'static, JsBip44PublicAccount>
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 JsBip44PublicAccount
impl WasmDescribe for JsBip44PublicAccount
sourceimpl Wraps<Bip44PublicAccount<Secp256k1>> for JsBip44PublicAccount
impl Wraps<Bip44PublicAccount<Secp256k1>> for JsBip44PublicAccount
sourcefn inner(&self) -> &Bip44PublicAccount<Secp256k1>
fn inner(&self) -> &Bip44PublicAccount<Secp256k1>
Converts a reference to a WASM type to a reference to the underlying Rust type.
Auto Trait Implementations
impl !RefUnwindSafe for JsBip44PublicAccount
impl !Send for JsBip44PublicAccount
impl !Sync for JsBip44PublicAccount
impl Unpin for JsBip44PublicAccount
impl !UnwindSafe for JsBip44PublicAccount
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