Struct iop_keyvault_wasm::JsBip44Coin
source · [−]pub struct JsBip44Coin { /* private fields */ }
Expand description
Represents a given coin in the BIP32 tree.
@see Bip32
Implementations
sourceimpl JsBip44Coin
impl JsBip44Coin
sourcepub fn node(&self) -> JsBip32Node
pub fn node(&self) -> JsBip32Node
Returns the underlying {@link Bip32Node}.
sourcepub fn account(&self, account: i32) -> Result<JsBip44Account, JsValue>
pub fn account(&self, account: i32) -> Result<JsBip44Account, JsValue>
Creates an account in the coin with the given account index.
sourcepub fn bip32_path(&self) -> String
pub fn bip32_path(&self) -> String
Accessor for the BIP32 path of the coin.
Trait Implementations
sourceimpl Clone for JsBip44Coin
impl Clone for JsBip44Coin
sourcefn clone(&self) -> JsBip44Coin
fn clone(&self) -> JsBip44Coin
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 JsBip44Coin
impl Debug for JsBip44Coin
sourceimpl From<Bip44Coin<Secp256k1>> for JsBip44Coin
impl From<Bip44Coin<Secp256k1>> for JsBip44Coin
sourceimpl From<JsBip44Coin> for JsValue
impl From<JsBip44Coin> for JsValue
sourcefn from(value: JsBip44Coin) -> Self
fn from(value: JsBip44Coin) -> Self
Converts to this type from the input type.
sourceimpl FromWasmAbi for JsBip44Coin
impl FromWasmAbi for JsBip44Coin
sourceimpl IntoWasmAbi for JsBip44Coin
impl IntoWasmAbi for JsBip44Coin
sourceimpl OptionFromWasmAbi for JsBip44Coin
impl OptionFromWasmAbi for JsBip44Coin
sourceimpl OptionIntoWasmAbi for JsBip44Coin
impl OptionIntoWasmAbi for JsBip44Coin
sourceimpl RefFromWasmAbi for JsBip44Coin
impl RefFromWasmAbi for JsBip44Coin
type Anchor = Ref<'static, JsBip44Coin>
type Anchor = Ref<'static, JsBip44Coin>
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 JsBip44Coin
impl RefMutFromWasmAbi for JsBip44Coin
type Anchor = RefMut<'static, JsBip44Coin>
type Anchor = RefMut<'static, JsBip44Coin>
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 JsBip44Coin
impl WasmDescribe for JsBip44Coin
Auto Trait Implementations
impl !RefUnwindSafe for JsBip44Coin
impl !Send for JsBip44Coin
impl !Sync for JsBip44Coin
impl Unpin for JsBip44Coin
impl !UnwindSafe for JsBip44Coin
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