This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository torspec.
The following commit(s) were added to refs/heads/main by this push: new 5e86477 rend-spec-v3: Clarify how the time period offset is computed. 5e86477 is described below
commit 5e864771d1f3245a7421d0502e285d134bcb1497 Author: Nick Mathewson nickm@torproject.org AuthorDate: Tue Jan 24 15:17:54 2023 -0500
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(-)
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