From 87a27d37586b794166ba87a16391690e9331d292 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Fri, 27 Sep 2019 11:48:25 -0400 Subject: [PATCH] It turns out to be more like this. --- src/_zkapauthorizer/foolscap.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/_zkapauthorizer/foolscap.py b/src/_zkapauthorizer/foolscap.py index 224614d..213eca4 100644 --- a/src/_zkapauthorizer/foolscap.py +++ b/src/_zkapauthorizer/foolscap.py @@ -29,9 +29,12 @@ from allmydata.interfaces import ( # lot of value. MAXIMUM_TOKENS_PER_CALL = 10 -# This is the length of a serialized PrivacyPass pass (there's a lot of -# confusion between "tokens" and "passes" here, sadly). -TOKEN_LENGTH = 97 +# This is the length of a serialized Ristretto-flavored PrivacyPass pass +# (there's a lot of confusion between "tokens" and "passes" here, sadly). +# +# The pass is a combination of base64-encoded token preimages and unblinded +# token signatures. +TOKEN_LENGTH = 177 # Take those values and turn them into the appropriate Foolscap constraint # objects. Foolscap seems to have a convention of representing these as -- GitLab