pub struct VerifyingKey(/* private fields */);Expand description
Ed448 verifying key (RFC 8032).
Implementations§
Source§impl VerifyingKey
impl VerifyingKey
Sourcepub fn from_bytes(bytes: &[u8; 57]) -> Result<Self>
pub fn from_bytes(bytes: &[u8; 57]) -> Result<Self>
Parse a verifying key from 57 bytes.
Sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<()>
pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<()>
Verify a 114-byte signature over a message.
Returns Ok(()) if the signature is valid, or an error otherwise.
The argument order is verify(message, signature) to match the
convention used by the hybrid constructions in this SDK.
Trait Implementations§
Source§impl Clone for VerifyingKey
impl Clone for VerifyingKey
Auto Trait Implementations§
impl Freeze for VerifyingKey
impl RefUnwindSafe for VerifyingKey
impl Send for VerifyingKey
impl Sync for VerifyingKey
impl Unpin for VerifyingKey
impl UnsafeUnpin for VerifyingKey
impl UnwindSafe for VerifyingKey
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> 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