pub struct Ed25519Verifier { /* private fields */ }Expand description
Ed25519 ArtifactVerifier.
Implementations§
Source§impl Ed25519Verifier
impl Ed25519Verifier
Sourcepub fn new(key: VerifyingKey) -> Self
pub fn new(key: VerifyingKey) -> Self
Wraps a public key.
Trait Implementations§
Source§impl ArtifactVerifier for Ed25519Verifier
impl ArtifactVerifier for Ed25519Verifier
Source§fn verify(&self, data: &[u8], signature: &[u8]) -> bool
fn verify(&self, data: &[u8], signature: &[u8]) -> bool
true when signature is a valid signature over data.Source§fn expected_jws_algorithm(&self) -> Option<&'static str>
fn expected_jws_algorithm(&self) -> Option<&'static str>
The JOSE
alg this verifier expects for JWS artifacts, when known.Source§fn expected_cose_algorithm(&self) -> Option<SigningAlgorithm>
fn expected_cose_algorithm(&self) -> Option<SigningAlgorithm>
The COSE algorithm this verifier expects for COSE artifacts, when
known.
Source§impl Clone for Ed25519Verifier
impl Clone for Ed25519Verifier
Source§fn clone(&self) -> Ed25519Verifier
fn clone(&self) -> Ed25519Verifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. 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 UnsafeUnpin for Ed25519Verifier
impl UnwindSafe for Ed25519Verifier
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