Skip to main content

recipient_from_seeds

Function recipient_from_seeds 

Source
pub fn recipient_from_seeds(
    suite: SuiteId,
    seeds: &[&[u8]],
) -> Result<RecipientKeypair>
Expand description

Deterministically build a recipient keypair for suite from per-component seeds — one per suite component, in suite order, each of that component’s KemComponent::seed_len.

Used for stable identity keys such as #mesh-kem (whose component seeds are HKDF-derived from the node Ed25519 root, see crate::node_identity::derive_mesh_kem_recipient), which MUST be stable across restarts — unlike generate_recipient, which draws fresh OS randomness each call.