From ff50e6e6c085232bc7eb55e3932687bf052f09bc Mon Sep 17 00:00:00 2001 From: Gabriela Moldovan Date: Mon, 15 Jan 2024 10:57:40 +0000 Subject: rend-spec: Escape "*" to prevent italicization. Otherwise e.g. `16903*1440*60` is rendered as `16903144060` (with 1440 italicized). --- spec/rend-spec/deriving-keys.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/rend-spec/deriving-keys.md b/spec/rend-spec/deriving-keys.md index 89de90d..1452086 100644 --- a/spec/rend-spec/deriving-keys.md +++ b/spec/rend-spec/deriving-keys.md @@ -84,9 +84,9 @@ the minutes since the epoch, to get 24341715. If the current time period length is 1440 minutes, by doing the division we see that we are currently in time period number 16903. -Specifically, time period #16903 began 16903*1440*60 + (12*60*60) seconds -after the epoch, at 2016-04-12 12:00 UTC, and ended at 16904*1440*60 + -(12*60*60) seconds after the epoch, at 2016-04-13 12:00 UTC. +Specifically, time period #16903 began 16903\*1440\*60 + (12\*60\*60) seconds +after the epoch, at 2016-04-12 12:00 UTC, and ended at 16904\*1440\*60 + +(12\*60\*60) seconds after the epoch, at 2016-04-13 12:00 UTC. -- cgit v1.2.3-54-g00ecf From 26978436b1ba76ef26717280eec6a163d006bca6 Mon Sep 17 00:00:00 2001 From: Gabriela Moldovan Date: Mon, 15 Jan 2024 11:03:51 +0000 Subject: rend-spec: Put formulas in ```text blocks. --- spec/rend-spec/deriving-keys.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/rend-spec/deriving-keys.md b/spec/rend-spec/deriving-keys.md index 1452086..07649fd 100644 --- a/spec/rend-spec/deriving-keys.md +++ b/spec/rend-spec/deriving-keys.md @@ -21,13 +21,17 @@ leaving the hidden service's private key offline. The subcredential for a period is derived as: +```text N_hs_subcred = H("subcredential" | N_hs_cred | blinded-public-key). +``` In the above formula, credential corresponds to: +```text N_hs_cred = H("credential" | public-identity-key) +``` -where public-identity-key is the public identity master key of the hidden +where `public-identity-key` is the public identity master key of the hidden service. ```text -- cgit v1.2.3-54-g00ecf From 6b48ce0351f079f578cac6ce318d1fc9af9fbb35 Mon Sep 17 00:00:00 2001 From: Gabriela Moldovan Date: Mon, 15 Jan 2024 11:07:52 +0000 Subject: rend-spec: Make HASHRING a top-level section. I think "Locating, uploading, and downloading hidden service descriptors" was supposed to be a section header rather than a text block. --- spec/rend-spec/deriving-keys.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spec/rend-spec/deriving-keys.md b/spec/rend-spec/deriving-keys.md index 07649fd..69eeee6 100644 --- a/spec/rend-spec/deriving-keys.md +++ b/spec/rend-spec/deriving-keys.md @@ -34,10 +34,7 @@ N_hs_cred = H("credential" | public-identity-key) where `public-identity-key` is the public identity master key of the hidden service. -```text -2.2. Locating, uploading, and downloading hidden service descriptors - [HASHRING] -``` +# Locating, uploading, and downloading hidden service descriptors {#HASHRING} To avoid attacks where a hidden service's descriptor is easily targeted for censorship, we store them at different directories over -- cgit v1.2.3-54-g00ecf