Struct ed448_verifier::verifying::VerifyingKey
source · pub struct VerifyingKey { /* private fields */ }
Expand description
Ed448 public key.
Optionally implements
signature::Verifier
: if the “sha3” feature is enabled (default).signature::DigestVerifier
: if the “sha3” and “digest” features are enabled.
§Example
Please see the verifying
module.
Implementations§
source§impl VerifyingKey
impl VerifyingKey
sourcepub fn from_bytes(bytes: &[u8; 57]) -> Result<Self, SignatureError>
pub fn from_bytes(bytes: &[u8; 57]) -> Result<Self, SignatureError>
Constructs a verifying key from a given byte slice.
Fails if bytes
is not 57 bytes long, or if bytes
does not represent
a valid point on the curve.
sourcepub fn raw_verify<CtxDigest>(
&self,
context: Option<&[u8]>,
message: &[u8],
signature: &Signature,
) -> Result<(), SignatureError>where
CtxDigest: Digest<OutputSize = U114>,
pub fn raw_verify<CtxDigest>(
&self,
context: Option<&[u8]>,
message: &[u8],
signature: &Signature,
) -> Result<(), SignatureError>where
CtxDigest: Digest<OutputSize = U114>,
Verifies a given signature for a specified message.
As this function is intended to be internally used, please use
VerifyingKey::verify
instead unless you disable the “sha3” feature.
Trait Implementations§
source§impl DigestVerifier<XofDigest<CoreWrapper<Shake256Core>, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>, Signature> for VerifyingKey
impl DigestVerifier<XofDigest<CoreWrapper<Shake256Core>, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>, Signature> for VerifyingKey
source§fn verify_digest(
&self,
digest: Shake256U64,
signature: &Signature,
) -> Result<(), SignatureError>
fn verify_digest( &self, digest: Shake256U64, signature: &Signature, ) -> Result<(), SignatureError>
Verify the signature against the given [
Digest
] output.source§impl TryFrom<&[u8]> for VerifyingKey
impl TryFrom<&[u8]> 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 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