pub struct RustySignature { /* private fields */ }Expand description
§RustySignature
Rusty Signature is the struct used for defining the signature and easily verifying it using:
- Message (a vector of bytes)
- SigningInfo (metadata and rng, as well as checks)
- Signatures (ED25519 and SPHINCS+)
Implementations§
Source§impl RustySignature
impl RustySignature
Sourcepub fn get_integrity_as_bytes(
&self,
hasher: RustySignatureHashingIntegrity,
) -> Vec<u8> ⓘ
pub fn get_integrity_as_bytes( &self, hasher: RustySignatureHashingIntegrity, ) -> Vec<u8> ⓘ
§Integrity
Retrieves RustySignatureIntegrity of Message Bytes (as Bytes)
Sourcepub fn integrity(&self, hasher: RustySignatureHashingIntegrity) -> String
pub fn integrity(&self, hasher: RustySignatureHashingIntegrity) -> String
§Integrity
Retrieves RustySignatureIntegrity of Message Bytes (as Hex)
pub fn serialize_to_yaml(&self) -> Result<String, Error>
Trait Implementations§
Source§impl Clone for RustySignature
impl Clone for RustySignature
Source§fn clone(&self) -> RustySignature
fn clone(&self) -> RustySignature
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 RustySignature
impl Debug for RustySignature
Source§impl<'de> Deserialize<'de> for RustySignature
impl<'de> Deserialize<'de> for RustySignature
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
Source§impl Drop for RustySignature
impl Drop for RustySignature
Source§impl Serialize for RustySignature
impl Serialize for RustySignature
Auto Trait Implementations§
impl Freeze for RustySignature
impl RefUnwindSafe for RustySignature
impl Send for RustySignature
impl Sync for RustySignature
impl Unpin for RustySignature
impl UnsafeUnpin for RustySignature
impl UnwindSafe for RustySignature
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