signing_keypair

Function signing_keypair 

Source
pub fn signing_keypair(
    record_topic: RecordTopic,
    unix_minute: u64,
) -> SigningKey
Expand description

Derive Ed25519 signing key for DHT record authentication.

Keys are deterministic per topic and time slot, derived from topic hash. All nodes use the same derived keypair for a given topic+time combination, and its verifying key serves as the DHT routing key for storing/retrieving bootstrap records. The actual record content is signed separately by each node’s individual keypair (not this one).

§Example

let topic = RecordTopic::from_str("my-topic")?;
let unix_minute = crate::unix_minute(0);
let signing_key = signing_keypair(topic, unix_minute);