From 7108316ea86f6205a519ef705adb8378a894b14d Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 14 Jan 2015 16:24:25 +0000 Subject: [PATCH] Mention the fields that the server should compute when creating events --- drafts/erikj_federation.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drafts/erikj_federation.rst b/drafts/erikj_federation.rst index c45626ef..940decde 100644 --- a/drafts/erikj_federation.rst +++ b/drafts/erikj_federation.rst @@ -6,6 +6,18 @@ Constructing a new event **TODO** +When constructing a new event, the server should insert the following fields: + +- ``prev_events``: The list of event ids of what the server believes are the + current leaf nodes of the event graph (i.e., nodes that have been received + but are yet to be referenced by another event). +- ``depth``: An integer one greater than the maximum depth of the event's + previous events. +- ``auth_events``: The list of event ids that authorizes this event. This + should be a subset of the current state. +- ``origin_server_ts``: The time the server created the event. +- ``origin``: The name of the server. + Signing and Hashes ~~~~~~~~~~~~~~~~~~