pub trait AuditSigner: Send + Sync {
// Required method
fn sign(&self, signing_input: &[u8]) -> Result<Vec<u8>, AuditError>;
}Expand description
Abstraction over the authority that signs audit records. Production wires
the hybrid COSE composite (EdDSA + ML-DSA-65) via
crate::mac::compiled::cose; tests use a trivial stub.
Required Methods§
Sourcefn sign(&self, signing_input: &[u8]) -> Result<Vec<u8>, AuditError>
fn sign(&self, signing_input: &[u8]) -> Result<Vec<u8>, AuditError>
Sign the record’s signing input (see audit_signing_input).