diff options
author | Nick Mathewson <nickm@torproject.org> | 2023-01-24 15:17:54 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2023-01-24 15:17:54 -0500 |
commit | 5e864771d1f3245a7421d0502e285d134bcb1497 (patch) | |
tree | f0a151f7e3b9ef4ff3d187c5360d4ff678b25387 /rend-spec-v3.txt | |
parent | 8f7f6f9e97a78f16454a155aef9dc315f608f925 (diff) | |
download | torspec-5e864771d1f3245a7421d0502e285d134bcb1497.tar.gz torspec-5e864771d1f3245a7421d0502e285d134bcb1497.zip |
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
Diffstat (limited to 'rend-spec-v3.txt')
-rw-r--r-- | rend-spec-v3.txt | 9 |
1 files 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 |