diff options
Diffstat (limited to 'protocol.txt')
-rw-r--r-- | protocol.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/protocol.txt b/protocol.txt index 25f239d..d290be7 100644 --- a/protocol.txt +++ b/protocol.txt @@ -21,7 +21,7 @@ Activity Seen and Activity Entered messages have a prevActivity, which points to the Hash of a previous Activity. (And is Nothing for the first Activity Seen.) So a chain of messages is built up. -(The exact details about how these objects are hashed is not described here; +(The exact details about how objects are hashed is not described here; see Hash.hs for the implementation. Note that the JSON strings are *not* directly hashed (to avoid tying hashing to JSON serialization details), instead the values in the data types are hashed.) @@ -88,3 +88,8 @@ before it, etc. Note that there could be multiple developers, in which case each will send their session key before being able to do anything except observe the debug-me session. + +The prevActivity hash is actually not included in the data sent across the +wire. It's left out to save space, and gets added back in by the receiver. +The receiver uses the signature of the message to tell when it's found +the right prevActivity hash to add back in. |