Skip to main content

ReplayToken

Type Alias ReplayToken 

Source
pub type ReplayToken = PacketTag;
Expand description

The token a replay filter is keyed on: the packet’s Sphinx authentication tag.

The tag is derived from the shared secret with the local node, so only a party that can derive that secret can produce one - an attacker cannot insert arbitrary tokens to age the filter out without paying the same elliptic-curve work per packet that a legitimate sender does.