pub struct JsMorpheusPublicKey { /* private fields */ }
Expand description
The operations on an identifier that do not require the private key to be available in memory.
Implementations§
Source§impl JsMorpheusPublicKey
impl JsMorpheusPublicKey
Sourcepub fn bip32_path(&self) -> String
pub fn bip32_path(&self) -> String
Accessor for the BIP32 path of the morpheus key.
Sourcepub fn public_key(&self) -> JsMPublicKey
pub fn public_key(&self) -> JsMPublicKey
Returns the multicipher {@link PublicKey} that belongs to this key.
Trait Implementations§
Source§impl Clone for JsMorpheusPublicKey
impl Clone for JsMorpheusPublicKey
Source§fn clone(&self) -> JsMorpheusPublicKey
fn clone(&self) -> JsMorpheusPublicKey
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 JsMorpheusPublicKey
impl Debug for JsMorpheusPublicKey
Source§impl From<JsMorpheusPublicKey> for JsValue
impl From<JsMorpheusPublicKey> for JsValue
Source§fn from(value: JsMorpheusPublicKey) -> JsValue
fn from(value: JsMorpheusPublicKey) -> JsValue
Converts to this type from the input type.
Source§impl From<MorpheusPublicKey> for JsMorpheusPublicKey
impl From<MorpheusPublicKey> for JsMorpheusPublicKey
Source§fn from(inner: MorpheusPublicKey) -> JsMorpheusPublicKey
fn from(inner: MorpheusPublicKey) -> JsMorpheusPublicKey
Converts to this type from the input type.
Source§impl FromWasmAbi for JsMorpheusPublicKey
impl FromWasmAbi for JsMorpheusPublicKey
Source§impl IntoWasmAbi for JsMorpheusPublicKey
impl IntoWasmAbi for JsMorpheusPublicKey
Source§impl LongRefFromWasmAbi for JsMorpheusPublicKey
impl LongRefFromWasmAbi for JsMorpheusPublicKey
Source§type Anchor = RcRef<JsMorpheusPublicKey>
type Anchor = RcRef<JsMorpheusPublicKey>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(
js: <JsMorpheusPublicKey as LongRefFromWasmAbi>::Abi,
) -> <JsMorpheusPublicKey as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsMorpheusPublicKey as LongRefFromWasmAbi>::Abi, ) -> <JsMorpheusPublicKey as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for JsMorpheusPublicKey
impl OptionFromWasmAbi for JsMorpheusPublicKey
Source§fn is_none(abi: &<JsMorpheusPublicKey as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsMorpheusPublicKey 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 JsMorpheusPublicKey
impl OptionIntoWasmAbi for JsMorpheusPublicKey
Source§fn none() -> <JsMorpheusPublicKey as IntoWasmAbi>::Abi
fn none() -> <JsMorpheusPublicKey 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 JsMorpheusPublicKey
impl RefFromWasmAbi for JsMorpheusPublicKey
Source§type Anchor = RcRef<JsMorpheusPublicKey>
type Anchor = RcRef<JsMorpheusPublicKey>
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: <JsMorpheusPublicKey as RefFromWasmAbi>::Abi,
) -> <JsMorpheusPublicKey as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsMorpheusPublicKey as RefFromWasmAbi>::Abi, ) -> <JsMorpheusPublicKey as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for JsMorpheusPublicKey
impl RefMutFromWasmAbi for JsMorpheusPublicKey
Source§type Anchor = RcRefMut<JsMorpheusPublicKey>
type Anchor = RcRefMut<JsMorpheusPublicKey>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn ref_mut_from_abi(
js: <JsMorpheusPublicKey as RefMutFromWasmAbi>::Abi,
) -> <JsMorpheusPublicKey as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsMorpheusPublicKey as RefMutFromWasmAbi>::Abi, ) -> <JsMorpheusPublicKey as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl TryFromJsValue for JsMorpheusPublicKey
impl TryFromJsValue for JsMorpheusPublicKey
Source§fn try_from_js_value(
value: JsValue,
) -> Result<JsMorpheusPublicKey, <JsMorpheusPublicKey as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsMorpheusPublicKey, <JsMorpheusPublicKey as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for JsMorpheusPublicKey
impl VectorFromWasmAbi for JsMorpheusPublicKey
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsMorpheusPublicKey as VectorFromWasmAbi>::Abi, ) -> Box<[JsMorpheusPublicKey]>
Source§impl VectorIntoWasmAbi for JsMorpheusPublicKey
impl VectorIntoWasmAbi for JsMorpheusPublicKey
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsMorpheusPublicKey]>, ) -> <JsMorpheusPublicKey as VectorIntoWasmAbi>::Abi
Source§impl Wraps<MorpheusPublicKey> for JsMorpheusPublicKey
impl Wraps<MorpheusPublicKey> for JsMorpheusPublicKey
Source§fn inner(&self) -> &MorpheusPublicKey
fn inner(&self) -> &MorpheusPublicKey
Converts a reference to a WASM type to a reference to the underlying Rust type.
Auto Trait Implementations§
impl Freeze for JsMorpheusPublicKey
impl !RefUnwindSafe for JsMorpheusPublicKey
impl !Send for JsMorpheusPublicKey
impl !Sync for JsMorpheusPublicKey
impl Unpin for JsMorpheusPublicKey
impl !UnwindSafe for JsMorpheusPublicKey
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
.