aboutsummaryrefslogtreecommitdiff
path: root/dir-spec.txt
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-09-17 10:48:45 -0400
committerNick Mathewson <nickm@torproject.org>2020-09-17 10:48:45 -0400
commit01122c5bd7d2f0fbb45991dcdddede30a358130f (patch)
tree4aa0890e32bc245eae3ee016d8acf9f5a03582ba /dir-spec.txt
parentb5ab5cd4a9a90324727c961e53e39d703d7ac4c9 (diff)
downloadtorspec-01122c5bd7d2f0fbb45991dcdddede30a358130f.tar.gz
torspec-01122c5bd7d2f0fbb45991dcdddede30a358130f.zip
Clarify ed25519 signatures on routerdescs.
Diffstat (limited to 'dir-spec.txt')
-rw-r--r--dir-spec.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/dir-spec.txt b/dir-spec.txt
index 2314974..74493ad 100644
--- a/dir-spec.txt
+++ b/dir-spec.txt
@@ -627,12 +627,13 @@
It MUST be the next-to-last element in the descriptor, appearing
immediately before the RSA signature. It MUST contain an Ed25519
- signature of a SHA256 digest of the entire document, from the
- first character up to and including the first space after the
- "router-sig-ed25519" string, prefixed with the string "Tor
- router descriptor signature v1". Its format is:
+ signature of a SHA256 digest of the entire document. This digest is
+ taken from the first character up to and including the first space
+ after the "router-sig-ed25519" string. Before computing the digest,
+ the string "Tor router descriptor signature v1" is prefixed to the
+ document.
- The signature is encoded in Base64 with terminating =s removed.
+ The signature is encoded in Base64, with terminating =s removed.
The signing key in the identity-ed25519 certificate MUST
be the one used to sign the document.