Trait CoseSigner
pub trait CoseSigner {
// Required methods
fn alg(&self) -> Algorithm;
fn kid(&self) -> Vec<u8> ⓘ;
fn sign(&self, msg: &[u8]) -> Vec<u8> ⓘ;
}Expand description
Trait abstracting over a signing key.
Implemented for ed25519_dalek::SigningKey below; ML-DSA-65 / PQ
support can be added later by implementing this trait + extending
alg_for_signer.
Required Methods§
fn alg(&self) -> Algorithm
fn alg(&self) -> Algorithm
IANA COSE algorithm identifier (e.g. iana::Algorithm::EdDSA).