Skip to main content

PqTrustStore

Trait PqTrustStore 

Source
pub trait PqTrustStore: Send + Sync {
    // Required method
    fn ml_dsa_key_for(
        &self,
        ed25519_pubkey: &[u8; 32],
    ) -> Option<MlDsaVerifyingKey>;
}
Expand description

Resolves the anchored ML-DSA-65 verifying key for an EdDSA signer identity.

kid-anchoring: the envelope’s EdDSA signer key (cnf, 32 bytes) is the identity. A PqTrustStore maps that identity to its trusted ML-DSA-65 key. The COSE ML-DSA-65 entry must verify against this anchored key (and its kid must match), so an attacker cannot strip + re-sign with their own PQ key.

Required Methods§

Source

fn ml_dsa_key_for(&self, ed25519_pubkey: &[u8; 32]) -> Option<MlDsaVerifyingKey>

Return the trusted ML-DSA-65 verifying key bound to the given Ed25519 signer public key, or None if no binding is known.

Implementors§