aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2024-01-22 08:22:24 -0500
committerNick Mathewson <nickm@torproject.org>2024-01-22 08:22:24 -0500
commitad7b206bd1a74a36d9285d287603fa3792739c1c (patch)
tree01c53ec9900c8197dc051f065ee78846c4e70e3f
parent18c77a790fdc3c6914fd5494f17d8b702526b560 (diff)
downloadtorspec-ad7b206bd1a74a36d9285d287603fa3792739c1c.tar.gz
torspec-ad7b206bd1a74a36d9285d287603fa3792739c1c.zip
Correct the start time for the OPE-based RC algorithm
We need to start counting from the beginning of the SRV protocol run, not from the beginning of the time period: Otherwise, we would have to encode negative numbers.
-rw-r--r--spec/rend-spec/revision-counter-mgt.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/rend-spec/revision-counter-mgt.md b/spec/rend-spec/revision-counter-mgt.md
index a59c606..f5c9a9c 100644
--- a/spec/rend-spec/revision-counter-mgt.md
+++ b/spec/rend-spec/revision-counter-mgt.md
@@ -30,7 +30,8 @@ service instances need to
without an actual coordination mechanism.
Let T be the number of seconds that have elapsed
-since the beginning of the time period,
+since the start time of the SRV protocol run
+that corresponds to this descriptor,
plus 1. (T must be at least 1.)
Let S be a per-time-period secret that all the service providers share.