pub struct JsMSignature { /* private fields */ }
Expand description
Multicipher signature
Implementations§
Source§impl JsMSignature
impl JsMSignature
Sourcepub fn new(sign_str: &str) -> Result<JsMSignature, JsValue>
pub fn new(sign_str: &str) -> Result<JsMSignature, JsValue>
Parses a string into a {@link Signature}.
Sourcepub fn from_secp(secp: &JsSecpSignature) -> JsMSignature
pub fn from_secp(secp: &JsSecpSignature) -> JsMSignature
Converts a {@link SecpSignature} into a multicipher {@link Signature}.
Trait Implementations§
Source§impl Clone for JsMSignature
impl Clone for JsMSignature
Source§fn clone(&self) -> JsMSignature
fn clone(&self) -> JsMSignature
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 JsMSignature
impl Debug for JsMSignature
Source§impl From<JsMSignature> for JsValue
impl From<JsMSignature> for JsValue
Source§fn from(value: JsMSignature) -> JsValue
fn from(value: JsMSignature) -> JsValue
Converts to this type from the input type.
Source§impl From<MSignature> for JsMSignature
impl From<MSignature> for JsMSignature
Source§fn from(inner: MSignature) -> JsMSignature
fn from(inner: MSignature) -> JsMSignature
Converts to this type from the input type.
Source§impl FromWasmAbi for JsMSignature
impl FromWasmAbi for JsMSignature
Source§impl IntoWasmAbi for JsMSignature
impl IntoWasmAbi for JsMSignature
Source§impl LongRefFromWasmAbi for JsMSignature
impl LongRefFromWasmAbi for JsMSignature
Source§type Anchor = RcRef<JsMSignature>
type Anchor = RcRef<JsMSignature>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(
js: <JsMSignature as LongRefFromWasmAbi>::Abi,
) -> <JsMSignature as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsMSignature as LongRefFromWasmAbi>::Abi, ) -> <JsMSignature as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for JsMSignature
impl OptionFromWasmAbi for JsMSignature
Source§fn is_none(abi: &<JsMSignature as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsMSignature 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 JsMSignature
impl OptionIntoWasmAbi for JsMSignature
Source§fn none() -> <JsMSignature as IntoWasmAbi>::Abi
fn none() -> <JsMSignature 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 JsMSignature
impl RefFromWasmAbi for JsMSignature
Source§type Anchor = RcRef<JsMSignature>
type Anchor = RcRef<JsMSignature>
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: <JsMSignature as RefFromWasmAbi>::Abi,
) -> <JsMSignature as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsMSignature as RefFromWasmAbi>::Abi, ) -> <JsMSignature as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for JsMSignature
impl RefMutFromWasmAbi for JsMSignature
Source§type Anchor = RcRefMut<JsMSignature>
type Anchor = RcRefMut<JsMSignature>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn ref_mut_from_abi(
js: <JsMSignature as RefMutFromWasmAbi>::Abi,
) -> <JsMSignature as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsMSignature as RefMutFromWasmAbi>::Abi, ) -> <JsMSignature as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl TryFromJsValue for JsMSignature
impl TryFromJsValue for JsMSignature
Source§fn try_from_js_value(
value: JsValue,
) -> Result<JsMSignature, <JsMSignature as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsMSignature, <JsMSignature as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for JsMSignature
impl VectorFromWasmAbi for JsMSignature
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsMSignature as VectorFromWasmAbi>::Abi, ) -> Box<[JsMSignature]>
Source§impl VectorIntoWasmAbi for JsMSignature
impl VectorIntoWasmAbi for JsMSignature
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsMSignature]>, ) -> <JsMSignature as VectorIntoWasmAbi>::Abi
Source§impl Wraps<MSignature> for JsMSignature
impl Wraps<MSignature> for JsMSignature
Source§fn inner(&self) -> &MSignature
fn inner(&self) -> &MSignature
Converts a reference to a WASM type to a reference to the underlying Rust type.
Auto Trait Implementations§
impl Freeze for JsMSignature
impl RefUnwindSafe for JsMSignature
impl Send for JsMSignature
impl Sync for JsMSignature
impl Unpin for JsMSignature
impl UnwindSafe for JsMSignature
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
.