Add a link to signing JSON section of the spec. Fixup the markup a bit

pull/24/head
Mark Haines 9 years ago
parent 01927cee9b
commit 42ad1f8612

@ -66,6 +66,8 @@ Keys are uploaded as a signed JSON object. The JSON object must include an
ed25519 key and must be signed by that key. A device may only have one ed25519 ed25519 key and must be signed by that key. A device may only have one ed25519
signing key. This key is used as the fingerprint for a device by other clients. signing key. This key is used as the fingerprint for a device by other clients.
The JSON object is signed using the process given by `Signing JSON`_.
.. code:: http .. code:: http
@ -90,17 +92,16 @@ signing key. This key is used as the fingerprint for a device by other clients.
} } }, } } },
"one_time_keys": { "one_time_keys": {
"<algorithm>:<key_id>": "<key_base64>" "<algorithm>:<key_id>": "<key_base64>"
}, } }
}
Downloading Keys Downloading Keys
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
Keys are downloaded as a collection of signed JSON objects. There Keys are downloaded as a collection of signed JSON objects. There
will be JSON object per device per user. If one of the user's will be a JSON object per device per user. If one of the user's
devices doesn't support end-to-end encryption then their devices doesn't support end-to-end encryption then their
homeserver will synthesise a JSON object without any device keys homeserver must synthesise a JSON object without any device keys
for that device. for that device.
The JSON must be signed by both the homeserver of The JSON must be signed by both the homeserver of
@ -151,7 +152,7 @@ lies about the keys a user owns.
Claiming One Time Keys Claiming One Time Keys
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
Some algorithms require one-time keys to improve their secrecy and deniability. Some algorithms require one-time keys to improve their secrecy and deniability.
These keys are used once during session establishment, and are then thrown These keys are used once during session establishment, and are then thrown
@ -228,3 +229,4 @@ Encrypted messages are sent in the form.
"type": 0, "type": 0,
"body": "<base_64>" "body": "<base_64>"
} } } } } } } } } }

Loading…
Cancel
Save