Struct sui_crypto::secp256r1::Secp256r1Verifier
source · pub struct Secp256r1Verifier {}
Available on crate feature
secp256r1
only.Implementations§
Trait Implementations§
source§impl Clone for Secp256r1Verifier
impl Clone for Secp256r1Verifier
source§fn clone(&self) -> Secp256r1Verifier
fn clone(&self) -> Secp256r1Verifier
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 Secp256r1Verifier
impl Debug for Secp256r1Verifier
source§impl Default for Secp256r1Verifier
impl Default for Secp256r1Verifier
source§fn default() -> Secp256r1Verifier
fn default() -> Secp256r1Verifier
Returns the “default value” for a type. Read more
source§impl Verifier<SimpleSignature> for Secp256r1Verifier
impl Verifier<SimpleSignature> for Secp256r1Verifier
source§fn verify(
&self,
message: &[u8],
signature: &SimpleSignature,
) -> Result<(), SignatureError>
fn verify( &self, message: &[u8], signature: &SimpleSignature, ) -> Result<(), SignatureError>
Use
Self
to verify that the provided signature for a given message
bytestring is authentic. Read moresource§impl Verifier<UserSignature> for Secp256r1Verifier
impl Verifier<UserSignature> for Secp256r1Verifier
source§fn verify(
&self,
message: &[u8],
signature: &UserSignature,
) -> Result<(), SignatureError>
fn verify( &self, message: &[u8], signature: &UserSignature, ) -> Result<(), SignatureError>
Use
Self
to verify that the provided signature for a given message
bytestring is authentic. Read moreAuto Trait Implementations§
impl Freeze for Secp256r1Verifier
impl RefUnwindSafe for Secp256r1Verifier
impl Send for Secp256r1Verifier
impl Sync for Secp256r1Verifier
impl Unpin for Secp256r1Verifier
impl UnwindSafe for Secp256r1Verifier
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more