pub struct VerifyingKey(/* private fields */);Expand description
A DSTU 4145 m=257 public key Q = -d*G (same convention as crypto_sign::VerifyingKey).
Implementations§
Source§impl VerifyingKey
impl VerifyingKey
pub fn to_uncompressed_bytes(&self) -> [u8; 66]
pub fn from_uncompressed_bytes(bytes: &[u8; 66]) -> Self
Sourcepub fn verify(&self, message: &[u8], sig: &Signature) -> bool
pub fn verify(&self, message: &[u8], sig: &Signature) -> bool
See crypto_sign::VerifyingKey::verify’s own doc comment.
Sourcepub fn verify_digest(&self, digest: &[u8; 32], sig: &Signature) -> bool
pub fn verify_digest(&self, digest: &[u8; 32], sig: &Signature) -> bool
See crypto_sign::VerifyingKey::verify_digest’s own doc comment (T-113’s streaming-message
note). Full public-key validation, including the general small-subgroup rejection
hazmat::dstu4145::signature257::verify itself performs (cofactor 4, not m=163’s 2 - see
that function’s own module doc).
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy 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