pub struct VerifyingKey { /* private fields */ }Expand description
Public verifying key for SLH-DSA-SHAKE-256s.
Implementations§
Source§impl VerifyingKey
impl VerifyingKey
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Parses a verifying key from its exact 2n-byte encoding (PK.seed || PK.root).
Sourcepub const fn from_array(bytes: [u8; 64]) -> Self
pub const fn from_array(bytes: [u8; 64]) -> Self
Constructs a verifying key from a fixed-size byte array.
Sourcepub const fn as_bytes(&self) -> &[u8; 64]
pub const fn as_bytes(&self) -> &[u8; 64]
Returns the canonical byte representation of the verifying key.
Sourcepub const fn zeroed() -> Self
pub const fn zeroed() -> Self
Returns an all-zero placeholder verifying key for in-place initialization.
Trait Implementations§
Source§impl Clone for VerifyingKey
impl Clone for VerifyingKey
Source§impl Debug for VerifyingKey
impl Debug for VerifyingKey
impl Eq for VerifyingKey
Source§impl PartialEq for VerifyingKey
impl PartialEq 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 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