pub struct PQSignature {
pub signature: Vec<u8>,
pub public_key: Vec<u8>,
pub algorithm: String,
}Expand description
Post-quantum signature using ML-DSA-87 (FIPS 204) ML-DSA-87 provides NIST security level 5 (highest)
Fields§
§signature: Vec<u8>The signature bytes
public_key: Vec<u8>Public key for verification
algorithm: StringAlgorithm identifier
Implementations§
Trait Implementations§
Source§impl Clone for PQSignature
impl Clone for PQSignature
Source§fn clone(&self) -> PQSignature
fn clone(&self) -> PQSignature
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 moreSource§impl Debug for PQSignature
impl Debug for PQSignature
Source§impl<'de> Deserialize<'de> for PQSignature
impl<'de> Deserialize<'de> for PQSignature
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PQSignature
impl RefUnwindSafe for PQSignature
impl Send for PQSignature
impl Sync for PQSignature
impl Unpin for PQSignature
impl UnsafeUnpin for PQSignature
impl UnwindSafe for PQSignature
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