Struct VerifyingKey
pub struct VerifyingKey {
pub(crate) element: ProjectivePoint,
}
Fields§
§element: ProjectivePoint
Implementations§
§impl VerifyingKey
impl VerifyingKey
pub fn new(element: ProjectivePoint) -> VerifyingKey
pub fn from_bytes(bytes: [u8; 33]) -> Result<VerifyingKey, Error>
pub fn to_bytes(self) -> Result<[u8; 33], Error>
pub fn to_element(self) -> ProjectivePoint
pub fn to_px_parity(self) -> ([u8; 32], u8)
pub fn message_hash(message: &[u8]) -> [u8; 32]
pub fn challenge(self, message_hash: [u8; 32], r: ProjectivePoint) -> Scalar
pub fn verify_prehashed( self, message_hash: [u8; 32], signature: &Signature, ) -> Result<(), Error>
pub fn verify(self, message: &[u8], signature: &Signature) -> Result<(), Error>
Trait Implementations§
§impl Clone for VerifyingKey
impl Clone for VerifyingKey
§fn clone(&self) -> VerifyingKey
fn clone(&self) -> VerifyingKey
Returns a copy 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 more§impl Debug for VerifyingKey
impl Debug for VerifyingKey
§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