pub struct PublicKey {
pub compressed: CompressedY,
/* private fields */
}
Expand description
a public key, consisting internally of both its defining point (the secret scalar times the curve base point) and the compression of that point.
Fields§
§compressed: CompressedY
Implementations§
source§impl PublicKey
impl PublicKey
pub fn verify(&self, message: &[u8], signature: &Signature) -> Result
pub fn verify_with_context( &self, message: &[u8], signature: &Signature, context: &[u8] ) -> Result
pub fn verify_prehashed( &self, prehashed_message: &[u8; 64], signature: &Signature, context: Option<&[u8]> ) -> Result
Trait Implementations§
source§impl PartialEq for PublicKey
impl PartialEq for PublicKey
impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
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