pub struct VerifyingKey(/* private fields */);Expand description
An ECDSA verifying key: a point on the curve.
Parsing does not validate the point; the ECDSA driver does, when it
is used. Convert to a Point to validate it explicitly.
Implementations§
Source§impl VerifyingKey
impl VerifyingKey
Sourcepub fn from_sec1(bytes: &[u8; 65]) -> Result<Self, Error>
pub fn from_sec1(bytes: &[u8; 65]) -> Result<Self, Error>
Parse an uncompressed SEC1 encoding (0x04 || x || y).
Sourcepub fn from_sec1_compressed(bytes: &[u8; 33]) -> Result<Self, Error>
pub fn from_sec1_compressed(bytes: &[u8; 33]) -> Result<Self, Error>
Parse a compressed SEC1 encoding (0x02 || x or 0x03 || x),
which validates the point.
Sourcepub fn to_sec1_compressed(&self) -> [u8; 33]
pub fn to_sec1_compressed(&self) -> [u8; 33]
The compressed SEC1 encoding (0x02 || x or 0x03 || x).
Trait Implementations§
Source§impl Clone for VerifyingKey
impl Clone for VerifyingKey
impl Copy for VerifyingKey
Source§impl Debug for VerifyingKey
impl Debug for VerifyingKey
impl Eq for VerifyingKey
Source§impl Format for VerifyingKey
impl Format for VerifyingKey
Source§impl PartialEq for VerifyingKey
impl PartialEq for VerifyingKey
impl StructuralPartialEq for VerifyingKey
Source§impl TryFrom<Point> for VerifyingKey
impl TryFrom<Point> for VerifyingKey
Auto Trait Implementations§
impl Forget for VerifyingKey
impl Freeze for VerifyingKey
impl Move 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