diff options
author | George Kadianakis <desnacked@riseup.net> | 2016-06-09 15:37:55 +0300 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2016-07-01 15:45:19 -0400 |
commit | b140fdd115bd3e42b1fa6954eda609d5da883f55 (patch) | |
tree | 3fd57e1cba0295e6c18fd203cfff2fa0d8092f39 /dir-spec.txt | |
parent | c4ae4dd31749dbb3e98182b1033ada21c07931d0 (diff) | |
download | torspec-b140fdd115bd3e42b1fa6954eda609d5da883f55.tar.gz torspec-b140fdd115bd3e42b1fa6954eda609d5da883f55.zip |
Add Version field in shared-rand-commit.
This is the case in the current codebase.
Diffstat (limited to 'dir-spec.txt')
-rw-r--r-- | dir-spec.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/dir-spec.txt b/dir-spec.txt index 3823da5..fb7ee9a 100644 --- a/dir-spec.txt +++ b/dir-spec.txt @@ -1671,10 +1671,11 @@ Denotes that the directory authority supports and can participate in the shared random protocol. - "shared-rand-commit" SP AlgName SP Identity SP Commit [SP Reveal] NL + "shared-rand-commit" SP Version SP AlgName SP Identity SP Commit [SP Reveal] NL [Any number for votes; does not occur in consensuses.] + Version ::= An integer greater or equal to 0. AlgName ::= 1*(ALPHA / DIGIT / "_" / "-") Identity ::= 40 * HEXDIG Commit ::= Base64-encoded-data @@ -1685,10 +1686,11 @@ reveal value. See sections [COMMITREVEAL] and [VALIDATEVALUES] of proposal 250 on how to generate and validate these values. - AlgName is the hash algorithm that is used (e.g. "sha3-256") and - Identity is the authority's SHA1 v3 identity fingerprint. Commit is the - encoded commitment value in base64. Reveal is optional and if it's set, - it contains the reveal value in base64. + Version is the current shared randomness protocol version. AlgName is + the hash algorithm that is used (e.g. "sha3-256") and Identity is the + authority's SHA1 v3 identity fingerprint. Commit is the encoded + commitment value in base64. Reveal is optional and if it's set, it + contains the reveal value in base64. If a vote contains multiple commits from the same authority, the receiver MUST only consider the first commit listed. |