Skip to main content

Module set

Module set 

Source
Expand description

Vanguard sets

Macrosยง

derive_deftly_driver_VanguardSets ๐Ÿ”’

Structsยง

TimeBoundVanguard ๐Ÿ”’
An identifier for a time-bound vanguard.
Vanguard
A vanguard relay.
VanguardSet ๐Ÿ”’
A set of vanguards, for use in a particular Layer.
VanguardSets ๐Ÿ”’
The L2 and L3 vanguard sets, stored in the same struct to simplify serialization.

Functionsยง

select_lifetime ๐Ÿ”’
Randomly select the lifetime of a vanguard from the max(X,X) distribution, where X is a uniform random value between min_lifetime and max_lifetime.