pub struct JsBip44Key { /* private fields */ }
Expand description
Represents the private API of a key with a given index within a sub-account used on the chain for storing balance or authenticating actions.
Implementations§
Source§impl JsBip44Key
impl JsBip44Key
Sourcepub fn node(&self) -> JsBip32Node
pub fn node(&self) -> JsBip32Node
Returns the underlying {@link Bip32Node}.
Sourcepub fn to_private_key(&self) -> JsSecpPrivateKey
pub fn to_private_key(&self) -> JsSecpPrivateKey
Creates the private key for 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) -> JsBip44PublicKey
pub fn neuter(&self) -> JsBip44PublicKey
Neuters the key and converts it into its public API
Trait Implementations§
Source§impl Clone for JsBip44Key
impl Clone for JsBip44Key
Source§fn clone(&self) -> JsBip44Key
fn clone(&self) -> JsBip44Key
Returns a copy 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 JsBip44Key
impl Debug for JsBip44Key
Source§impl From<JsBip44Key> for JsValue
impl From<JsBip44Key> for JsValue
Source§fn from(value: JsBip44Key) -> JsValue
fn from(value: JsBip44Key) -> JsValue
Converts to this type from the input type.
Source§impl FromWasmAbi for JsBip44Key
impl FromWasmAbi for JsBip44Key
Source§impl IntoWasmAbi for JsBip44Key
impl IntoWasmAbi for JsBip44Key
Source§impl LongRefFromWasmAbi for JsBip44Key
impl LongRefFromWasmAbi for JsBip44Key
Source§type Anchor = RcRef<JsBip44Key>
type Anchor = RcRef<JsBip44Key>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(
js: <JsBip44Key as LongRefFromWasmAbi>::Abi,
) -> <JsBip44Key as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsBip44Key as LongRefFromWasmAbi>::Abi, ) -> <JsBip44Key as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for JsBip44Key
impl OptionFromWasmAbi for JsBip44Key
Source§fn is_none(abi: &<JsBip44Key as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsBip44Key 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 JsBip44Key
impl OptionIntoWasmAbi for JsBip44Key
Source§fn none() -> <JsBip44Key as IntoWasmAbi>::Abi
fn none() -> <JsBip44Key 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 JsBip44Key
impl RefFromWasmAbi for JsBip44Key
Source§type Anchor = RcRef<JsBip44Key>
type Anchor = RcRef<JsBip44Key>
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: <JsBip44Key as RefFromWasmAbi>::Abi,
) -> <JsBip44Key as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsBip44Key as RefFromWasmAbi>::Abi, ) -> <JsBip44Key as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for JsBip44Key
impl RefMutFromWasmAbi for JsBip44Key
Source§type Anchor = RcRefMut<JsBip44Key>
type Anchor = RcRefMut<JsBip44Key>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn ref_mut_from_abi(
js: <JsBip44Key as RefMutFromWasmAbi>::Abi,
) -> <JsBip44Key as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsBip44Key as RefMutFromWasmAbi>::Abi, ) -> <JsBip44Key as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl TryFromJsValue for JsBip44Key
impl TryFromJsValue for JsBip44Key
Source§fn try_from_js_value(
value: JsValue,
) -> Result<JsBip44Key, <JsBip44Key as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsBip44Key, <JsBip44Key as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for JsBip44Key
impl VectorFromWasmAbi for JsBip44Key
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsBip44Key as VectorFromWasmAbi>::Abi, ) -> Box<[JsBip44Key]>
Source§impl VectorIntoWasmAbi for JsBip44Key
impl VectorIntoWasmAbi for JsBip44Key
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsBip44Key]>, ) -> <JsBip44Key as VectorIntoWasmAbi>::Abi
Auto Trait Implementations§
impl Freeze for JsBip44Key
impl !RefUnwindSafe for JsBip44Key
impl !Send for JsBip44Key
impl !Sync for JsBip44Key
impl Unpin for JsBip44Key
impl !UnwindSafe for JsBip44Key
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
.