pub struct JsSecpKeyId { /* private fields */ }
Expand description
Secp256k1 key id (fingerprint/digest/hash of a public key)
Implementations§
Source§impl JsSecpKeyId
impl JsSecpKeyId
Sourcepub fn from_p2pkh_addr(
address: &str,
network: &str,
) -> Result<JsSecpKeyId, JsValue>
pub fn from_p2pkh_addr( address: &str, network: &str, ) -> Result<JsSecpKeyId, JsValue>
Deserializes the key identifier from a p2pkh
bitcoin address
Trait Implementations§
Source§impl Clone for JsSecpKeyId
impl Clone for JsSecpKeyId
Source§fn clone(&self) -> JsSecpKeyId
fn clone(&self) -> JsSecpKeyId
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 JsSecpKeyId
impl Debug for JsSecpKeyId
Source§impl From<JsSecpKeyId> for JsValue
impl From<JsSecpKeyId> for JsValue
Source§fn from(value: JsSecpKeyId) -> JsValue
fn from(value: JsSecpKeyId) -> JsValue
Converts to this type from the input type.
Source§impl From<SecpKeyId> for JsSecpKeyId
impl From<SecpKeyId> for JsSecpKeyId
Source§fn from(inner: SecpKeyId) -> JsSecpKeyId
fn from(inner: SecpKeyId) -> JsSecpKeyId
Converts to this type from the input type.
Source§impl FromWasmAbi for JsSecpKeyId
impl FromWasmAbi for JsSecpKeyId
Source§impl IntoWasmAbi for JsSecpKeyId
impl IntoWasmAbi for JsSecpKeyId
Source§impl LongRefFromWasmAbi for JsSecpKeyId
impl LongRefFromWasmAbi for JsSecpKeyId
Source§type Anchor = RcRef<JsSecpKeyId>
type Anchor = RcRef<JsSecpKeyId>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(
js: <JsSecpKeyId as LongRefFromWasmAbi>::Abi,
) -> <JsSecpKeyId as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsSecpKeyId as LongRefFromWasmAbi>::Abi, ) -> <JsSecpKeyId as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for JsSecpKeyId
impl OptionFromWasmAbi for JsSecpKeyId
Source§fn is_none(abi: &<JsSecpKeyId as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsSecpKeyId 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 JsSecpKeyId
impl OptionIntoWasmAbi for JsSecpKeyId
Source§fn none() -> <JsSecpKeyId as IntoWasmAbi>::Abi
fn none() -> <JsSecpKeyId 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 JsSecpKeyId
impl RefFromWasmAbi for JsSecpKeyId
Source§type Anchor = RcRef<JsSecpKeyId>
type Anchor = RcRef<JsSecpKeyId>
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: <JsSecpKeyId as RefFromWasmAbi>::Abi,
) -> <JsSecpKeyId as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsSecpKeyId as RefFromWasmAbi>::Abi, ) -> <JsSecpKeyId as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for JsSecpKeyId
impl RefMutFromWasmAbi for JsSecpKeyId
Source§type Anchor = RcRefMut<JsSecpKeyId>
type Anchor = RcRefMut<JsSecpKeyId>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn ref_mut_from_abi(
js: <JsSecpKeyId as RefMutFromWasmAbi>::Abi,
) -> <JsSecpKeyId as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsSecpKeyId as RefMutFromWasmAbi>::Abi, ) -> <JsSecpKeyId as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl TryFromJsValue for JsSecpKeyId
impl TryFromJsValue for JsSecpKeyId
Source§fn try_from_js_value(
value: JsValue,
) -> Result<JsSecpKeyId, <JsSecpKeyId as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsSecpKeyId, <JsSecpKeyId as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for JsSecpKeyId
impl VectorFromWasmAbi for JsSecpKeyId
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsSecpKeyId as VectorFromWasmAbi>::Abi, ) -> Box<[JsSecpKeyId]>
Source§impl VectorIntoWasmAbi for JsSecpKeyId
impl VectorIntoWasmAbi for JsSecpKeyId
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsSecpKeyId]>, ) -> <JsSecpKeyId as VectorIntoWasmAbi>::Abi
Auto Trait Implementations§
impl Freeze for JsSecpKeyId
impl RefUnwindSafe for JsSecpKeyId
impl Send for JsSecpKeyId
impl Sync for JsSecpKeyId
impl Unpin for JsSecpKeyId
impl UnwindSafe for JsSecpKeyId
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
.