pub trait ViewOperations {
// Required method
fn pub_key(&self) -> &PublicKey;
// Provided methods
fn pub_key_bytes(&self) -> &[u8; 1793] { ... }
fn verify_comp(&self, msg: &[u8], sig: &[u8]) -> Result<bool, CryptoError> { ... }
fn verify_message_bytes(&self, sig: &[u8]) -> Result<Vec<u8>, CryptoError> { ... }
fn verify_message(&self, sm: &SignedMessage) -> Result<Vec<u8>, CryptoError> { ... }
}Expand description
Common operations for verifying signatures
This trait provides methods for accessing public keys and verifying signed messages with post-quantum cryptographic algorithms.
Required Methods§
Provided Methods§
Sourcefn pub_key_bytes(&self) -> &[u8; 1793]
fn pub_key_bytes(&self) -> &[u8; 1793]
Gets a reference to the public key as a byte array