Struct sui_crypto::ed25519::Ed25519Verifier
source · pub struct Ed25519Verifier {}
Available on crate feature
ed25519
only.Implementations§
Trait Implementations§
source§impl Clone for Ed25519Verifier
impl Clone for Ed25519Verifier
source§fn clone(&self) -> Ed25519Verifier
fn clone(&self) -> Ed25519Verifier
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 Ed25519Verifier
impl Debug for Ed25519Verifier
source§impl Default for Ed25519Verifier
impl Default for Ed25519Verifier
source§fn default() -> Ed25519Verifier
fn default() -> Ed25519Verifier
Returns the “default value” for a type. Read more
source§impl Verifier<SimpleSignature> for Ed25519Verifier
impl Verifier<SimpleSignature> for Ed25519Verifier
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 Ed25519Verifier
impl Verifier<UserSignature> for Ed25519Verifier
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 Ed25519Verifier
impl RefUnwindSafe for Ed25519Verifier
impl Send for Ed25519Verifier
impl Sync for Ed25519Verifier
impl Unpin for Ed25519Verifier
impl UnwindSafe for Ed25519Verifier
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