diff options
author | Hans-Christoph Steiner <hans@eds.org> | 2019-11-27 12:59:04 +0100 |
---|---|---|
committer | Hans-Christoph Steiner <hans@eds.org> | 2019-12-10 16:06:53 +0100 |
commit | 9c86f54ba07355a968f982aed295e8b6597b4b89 (patch) | |
tree | fe2954f48bbcf92ff2f7394210ebd00701a7f3d8 /bridgedb-spec.txt | |
parent | 68437951a3f758475d24b872c5b66c6f227b3ae5 (diff) | |
download | torspec-9c86f54ba07355a968f982aed295e8b6597b4b89.tar.gz torspec-9c86f54ba07355a968f982aed295e8b6597b4b89.zip |
convert text blocks into widely compatible "blockquote" syntax
This only adds newline characters to make the existing text blocks act like
"blockquote" or "code block" syntax in Markdown, asciidoc, and others.
This was accomplished by manually reviewing the output of this script:
```bash
for f in *.txt; do
cat $f | python -c "import sys,re;print(re.sub(r'(\n {0,3}[^ \n][^\n]*\n)( {4,}[^\n]*)', r'\1\n\2', sys.stdin.read()))" > ${f}.tmp
mv ${f}.tmp $f
done
```
Diffstat (limited to 'bridgedb-spec.txt')
-rw-r--r-- | bridgedb-spec.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bridgedb-spec.txt b/bridgedb-spec.txt index 89f850a..a4c4708 100644 --- a/bridgedb-spec.txt +++ b/bridgedb-spec.txt @@ -209,6 +209,7 @@ the requirements. This ring is then used to select bridges as described. "Mapping X to Y based on an HMAC" above means one of the following: + - We keep all of the elements of Y in some order, with a mapping from all 160-bit strings to positions in Y. - We take an HMAC of X using some fixed string as a key to get a @@ -219,6 +220,7 @@ BridgeDB may be configured to "Give out at least L bridges with port 443, and at least M bridges with Stable, and at most N bridges total." To do this, BridgeDB combines to the results: + - The first L bridges in the ring after the position that have the port 443, and - The first M bridges in the ring after the position that have the @@ -299,6 +301,7 @@ To map previously unseen email addresses to a set of bridges, BridgeDB proceeds as follows: + - It normalizes the email address as above, by stripping out dots, removing all of the localpart after the +, and putting it all in lowercase. (Example: "John.Doe+bridges@example.COM" becomes |