pub struct Ed25519VerifyKey { /* private fields */ }Expand description
A public key with its point already recovered.
Verification needs the public key as a curve point, and decompressing one
is a field exponentiation – about two microseconds, against the twenty a
verification takes. A key used more than once should not pay that more than
once, which is the same reason Ed25519Key exists on the signing side.
The point is stored negated, because the equation verification checks is
[S]B + [k](-A) == R, so that is the form every signature wants.
Ed25519::verify builds one of these and throws it away, which is the
right thing for a caller with one signature and the wrong thing for a
caller with many.
Implementations§
Auto Trait Implementations§
impl Freeze for Ed25519VerifyKey
impl RefUnwindSafe for Ed25519VerifyKey
impl Send for Ed25519VerifyKey
impl Sync for Ed25519VerifyKey
impl Unpin for Ed25519VerifyKey
impl UnsafeUnpin for Ed25519VerifyKey
impl UnwindSafe for Ed25519VerifyKey
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