Trait pqcrypto_traits::sign::SignedMessage
source · pub trait SignedMessage {
// Required methods
fn as_bytes(&self) -> &[u8] ⓘ;
fn from_bytes(bytes: &[u8]) -> Result<Self>
where Self: Sized;
}
Expand description
A signed message.
This object contains both the signed message and the signature on it.
If you use this struct, you no longer should send the plain text along
with it. The open
methods make sure that you will not
process invalid ciphertexts by not returning the plain text if the signature
is invalid.