From 5e864771d1f3245a7421d0502e285d134bcb1497 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 24 Jan 2023 15:17:54 -0500 Subject: rend-spec-v3: Clarify how the time period offset is computed. Based on this email thread with dgoulet: https://lists.torproject.org/pipermail/tor-dev/2023-January/014808.html --- rend-spec-v3.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'rend-spec-v3.txt') diff --git a/rend-spec-v3.txt b/rend-spec-v3.txt index 278c1fa..e22b690 100644 --- a/rend-spec-v3.txt +++ b/rend-spec-v3.txt @@ -743,10 +743,11 @@ Table of contents: Time periods start at the Unix epoch (Jan 1, 1970), and are computed by taking the number of minutes since the epoch and dividing by the time - period. However, we want our time periods to start at 12:00UTC every day, so - we subtract a "rotation time offset" of 12*60 minutes from the number of - minutes since the epoch, before dividing by the time period (effectively - making "our" epoch start at Jan 1, 1970 12:00UTC). + period. However, we want our time periods to start at a regular offset + from the SRV voting schedule, so we subtract a "rotation time offset" + of 12 voting periods from the number of minutes since the epoch, before + dividing by the time period (effectively making "our" epoch start at Jan + 1, 1970 12:00UTC when the voting period is 1 hour.) Example: If the current time is 2016-04-13 11:15:01 UTC, making the seconds since the epoch 1460546101, and the number of minutes since the epoch -- cgit v1.2.3-54-g00ecf