encryption_keypair

Function encryption_keypair 

Source
pub fn encryption_keypair(
    record_topic: RecordTopic,
    secret_rotation_function: &RotationHandle,
    initial_secret_hash: [u8; 32],
    unix_minute: u64,
) -> SigningKey
Expand description

Derive Ed25519 key for HPKE encryption/decryption.

Incorporates the secret rotation strategy for time-slot isolation.

§Example

let topic = RecordTopic::from_str("my-topic")?;
let rotation = RotationHandle::default();
let enc_key = encryption_keypair(topic, &rotation, initial_hash, 0);