mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
Each node rotates an ephemeral X25519 key every 30 minutes and keeps the previous one for another period. Envelopes carry the sender static and ephemeral keys. Session envelopes use keys derived from all four DH combinations of static and ephemeral keys, erased with the epoch. Initial envelopes, sent before the peer's ephemeral key is known, mix the sender ephemeral and static keys with the receiver static key. A hello is unauthenticated: it is only answered, without adding or moving its claimed node. A peer is acknowledged only by a reply to a request sent in an envelope, and a request retry restarts with an Initial envelope and our credential.