Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orbea
Tor
Commits
5d68fc10
Commit
5d68fc10
authored
17 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
r13419@catbus: nickm | 2007-06-14 14:05:17 -0400
Clarify some rules about svn:r10635
parent
9e944d07
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/spec/dir-spec.txt
+44
-30
44 additions, 30 deletions
doc/spec/dir-spec.txt
with
44 additions
and
30 deletions
doc/spec/dir-spec.txt
+
44
−
30
View file @
5d68fc10
...
...
@@ -19,7 +19,7 @@ $Id$
103 Splitting identity key from regularly used signing key
104 Long and Short Router Descriptors
AS OF 1
8 MAY
2007, THIS SPECIFICATION HAS NOT YET BEEN COMPLETELY
AS OF 1
4 JUNE
2007, THIS SPECIFICATION HAS NOT YET BEEN COMPLETELY
IMPLEMENTED, OR COMPLETELY COMPLETED.
XXX when to download certificates.
...
...
@@ -35,19 +35,17 @@ $Id$
The Version 1 Directory protocol
--------------------------------
[XXX say which versions added what.]
Early versions of Tor introduced "Directory authorities": servers that
served signed "directory" documents containing a list of signed "router
descriptors", along with short summary of the status of each router.
Thus, clients could get up-to-date information on the state of the
network automatically, and be certain that they list they were getting
Early versions of Tor (0.0.2) introduced "Directory authorities": servers
that served signed "directory" documents containing a list of signed
"router descriptors", along with short summary of the status of each
router. Thus, clients could get up-to-date information on the state of
the network automatically, and be certain that they list they were getting
was attested by a trusted directory authority.
Later versions added directory caches, which download
directories from
the authorities and serve them to clients. Non-caches
fetch from the
caches in preference to fetching from the authorities, thus
distributing
bandwidth requirements.
Later versions
(0.0.8)
added directory caches, which download
directories from
the authorities and serve them to clients. Non-caches
fetch from the
caches in preference to fetching from the authorities, thus
distributing
bandwidth requirements.
Also added during the version 1 directory protocol were "router status"
documents: short documents that listed only the up/down status of the
...
...
@@ -695,7 +693,7 @@ $Id$
"published" SP YYYY-MM-DD SP HH:MM:SS NL
[Exactly once for votes;
D
oes not occur in consensuses.]
[Exactly once for votes;
d
oes not occur in consensuses.]
The publication time for this status document (if a vote).
...
...
@@ -753,7 +751,8 @@ $Id$
The authority section of a vote contains the following items, followed
in turn by the authority's current key certificate:
"dir-source" SP nickname SP identity SP address SP IP SP dirport SP orport NL
"dir-source" SP nickname SP identity SP address SP IP SP dirport SP
orport NL
[Exactly once, at start]
...
...
@@ -775,7 +774,8 @@ $Id$
in the order given, with one group for each authority that contributed to
the consensus, with groups sorted by authority identity digest:
"dir-source" SP nickname SP identity SP address SP IP SP dirport SP orport NL
"dir-source" SP nickname SP identity SP address SP IP SP dirport SP
orport NL
[Exactly once, at start]
...
...
@@ -931,10 +931,13 @@ $Id$
Given a set of votes, authorities compute the contents of the consensus
document as follows:
The "valid-after" is the latest of all valid-after times on the votes.
The "valid-after", "valid-until", and "fresh-until" times are taken as
the median of the respective values from all the votes.
The times in the "voting-delay" line are taken as the median of the
VoteSeconds and DistSeconds times in the votes.
The "valid-until" is the earliest of all valid-until times on the
votes.
Known-flags is the union of all flags known by any voter.
"client-versions" and "server-versions" are sorted in ascending
order; A version is recommended in the consensus if it is recommended
...
...
@@ -946,19 +949,30 @@ $Id$
authorities. These groups are sorted by the digests of the
authorities identity keys, in ascending order.
A router status entry is included in the result if it is included by more
than half of the authorities (total authorities, not just those whose
votes we have). A router entry has a flag set if it is included by
more than half of the authorities who care about that flag. Two
router entries are "the same" if they have the same identity digest.
We use whatever descriptor digest is attested to by the most
authorities among the voters, breaking ties in favor of the one with
the most recent publication time.
A router status entry:
* is included in the result if some router status entry with the same
identity is included by more than half of the authorities (total
authorities, not just those whose votes we have).
* For any given identity, we include at most one router status entry.
* A router entry has a flag set if that is included by more than half
of the authorities who care about that flag.
* Two router entries are "the same" if they have the same
<descriptor digest, published time, nickname, IP, ports> tuple.
We choose the tuple for a given router as whichever tuple appears
for that router in the most votes. We break ties in favor of
the more recently published.
* The Named flag appears if it is included for this routerstatus by
_any_ authority, and if all authorities that list it list the same
nickname.
(XXXX what to do about
version
, pub
lis
h
ed
time, IP, orport, dirport,
nickname,
version
?)
* The version is given as whichever
version
is
lis
t
ed
by the most
voters, with ties decided in favor of more recent
version
s.
The signatures at the end of
the
document
appear
are sorted in
The signatures at the end of
a consensus
document are sorted in
ascending order by identity digest.
3.4. Detached signatures
...
...
@@ -981,7 +995,7 @@ $Id$
[As in the consensus]
"directory
signature"
"directory
-
signature"
[As in the consensus; the signature object is the same as in the
consensus document.]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment