Skip to main content

ADMISSION_EPOCHS

Static ADMISSION_EPOCHS 

Source
static ADMISSION_EPOCHS: AtomicU64
Expand description

Mints the number naming each admission of a pseudonym, process-wide.

Every SurbStore::admit call takes the next value, so two admissions of the same pseudonym can never share one — which is the property the deferred retire leans on. The counter is process-wide rather than per pseudonym so that an admit does not have to look up the pseudonym’s previous number to advance it; u64 is inexhaustible at any conceivable admission rate.

Zero is deliberately never minted: a session-side AdmissionToken::NONE carries zero, and a retire presenting it must match nothing — it is what a teardown of a never-admitted Session passes through the seam.