From fb1c77119707151de31daa2006c246b861036ff4 Mon Sep 17 00:00:00 2001 From: zzz Date: Sat, 9 Mar 2019 17:42:19 +0000 Subject: [PATCH] fixes --- i2p2www/spec/encryptedleaseset.rst | 12 ++++++------ i2p2www/spec/proposals/123-new-netdb-entries.rst | 9 ++++----- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/i2p2www/spec/encryptedleaseset.rst b/i2p2www/spec/encryptedleaseset.rst index f6411f16..ba82faae 100644 --- a/i2p2www/spec/encryptedleaseset.rst +++ b/i2p2www/spec/encryptedleaseset.rst @@ -370,10 +370,10 @@ A new secret alpha and blinded keys must be generated each day (UTC). The secret alpha and the blinded keys are calculated as follows: -.. raw:: html - GENERATE_ALPHA(destination, date, secret), for all parties: +.. raw:: html + {% highlight lang='text' %} // secret is optional, else zero-length A = destination's signing public key @@ -386,10 +386,10 @@ GENERATE_ALPHA(destination, date, secret), for all parties: alpha = seed mod l {% endhighlight %} -.. raw:: html - BLIND_PRIVKEY(), for the owner publishing the leaseset: +.. raw:: html + {% highlight lang='text' %} alpha = GENERATE_ALPHA(destination, date, secret) a = destination's signing private key @@ -398,10 +398,10 @@ alpha = GENERATE_ALPHA(destination, date, secret) blinded signing public key = A' = DERIVE_PUBLIC(a') {% endhighlight %} -.. raw:: html - BLIND_PUBKEY(), for the clients retrieving the leaseset: +.. raw:: html + {% highlight lang='text' %} alpha = GENERATE_ALPHA(destination, date, secret) A = destination's signing public key diff --git a/i2p2www/spec/proposals/123-new-netdb-entries.rst b/i2p2www/spec/proposals/123-new-netdb-entries.rst index eef9e335..096972ec 100644 --- a/i2p2www/spec/proposals/123-new-netdb-entries.rst +++ b/i2p2www/spec/proposals/123-new-netdb-entries.rst @@ -802,15 +802,14 @@ Blinding Calculations ~~~~~~~~~~~~~~~~~~~~~ A new secret alpha and blinded keys must be generated each day (UTC). - -The secret alpha and the blinded keys are calculated as follows: +The secret alpha and the blinded keys are calculated as follows. GENERATE_ALPHA(destination, date, secret), for all parties: .. raw:: html {% highlight lang='text' %} -// GENERATE_ALPHA(destination, date, secret): +// GENERATE_ALPHA(destination, date, secret) // secret is optional, else zero-length A = destination's signing public key stA = signature type of A, 2 bytes big endian (0x0007 or 0x000b) @@ -826,7 +825,7 @@ BLIND_PRIVKEY(), for the owner publishing the leaseset: .. raw:: html {% highlight lang='text' %} -// BLIND_PRIVKEY(): +// BLIND_PRIVKEY() alpha = GENERATE_ALPHA(destination, date, secret) a = destination's signing private key // Addition using scalar arithmentic @@ -839,7 +838,7 @@ BLIND_PUBKEY(), for the clients retrieving the leaseset: .. raw:: html {% highlight lang='text' %} -// BLIND_PUBKEY(): +// BLIND_PUBKEY() alpha = GENERATE_ALPHA(destination, date, secret) A = destination's signing public key // Addition using group elements (points on the curve)