pub struct VerifyingKey {
pub point: ProjectivePoint,
}Expand description
Ed25519 key for signature verification (public key).
Fields§
§point: ProjectivePointEdwards point used for curve arithmetic operations.
Implementations§
Source§impl VerifyingKey
impl VerifyingKey
Sourcepub fn from_affine(point: AffinePoint) -> Self
pub fn from_affine(point: AffinePoint) -> Self
Construct verifying key from affine point.
Sourcepub fn is_valid(&self, message: &[u8], signature: &Signature) -> bool
pub fn is_valid(&self, message: &[u8], signature: &Signature) -> bool
Verify a signature on a message with this keypair’s public key.
Sourcepub fn to_bytes(&self) -> PublicKey
pub fn to_bytes(&self) -> PublicKey
Convert the VerifyingKey to a compressed byte representation.
Trait Implementations§
Source§impl Clone for VerifyingKey
impl Clone for VerifyingKey
Source§fn clone(&self) -> VerifyingKey
fn clone(&self) -> VerifyingKey
Returns a duplicate 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 Default for VerifyingKey
impl Default for VerifyingKey
Source§fn default() -> VerifyingKey
fn default() -> VerifyingKey
Returns the “default value” for a type. Read more
Source§impl From<Projective<Curve25519Config>> for VerifyingKey
impl From<Projective<Curve25519Config>> for VerifyingKey
Source§fn from(point: ProjectivePoint) -> Self
fn from(point: ProjectivePoint) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VerifyingKey
impl PartialEq for VerifyingKey
impl Copy for VerifyingKey
impl StructuralPartialEq 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