diff options
author | Max Ogden <max@maxogden.com> | 2016-12-09 16:03:33 -0800 |
---|---|---|
committer | Max Ogden <max@maxogden.com> | 2016-12-09 16:03:33 -0800 |
commit | 58097e71210a428762aa0bd2a1ab20185d8a7085 (patch) | |
tree | 243b6f75a5f3017689b24180a38bfe1b420f05d6 /papers | |
parent | 33f4526c68078c21d38f76938396153f577209fc (diff) | |
download | dat-docs-58097e71210a428762aa0bd2a1ab20185d8a7085.tar.gz dat-docs-58097e71210a428762aa0bd2a1ab20185d8a7085.zip |
update paper
Diffstat (limited to 'papers')
-rw-r--r-- | papers/dat-paper.md | 30 | ||||
-rw-r--r-- | papers/dat-paper.pdf | bin | 232765 -> 231076 bytes |
2 files changed, 15 insertions, 15 deletions
diff --git a/papers/dat-paper.md b/papers/dat-paper.md index 0c65cc4..0f40700 100644 --- a/papers/dat-paper.md +++ b/papers/dat-paper.md @@ -294,21 +294,21 @@ Dat is also able to fully or partially synchronize streams in a distributed sett TODO example of using protocol messages to request a subset of nodes in a live sync scenario ```js -var feed = [ - { - hash: sha256(value + size), - size: value.length - value: <some buffer> - }, - { - hash: sha256(feed[0].hash + feed[2].hash + size), - size: feed[0].size + feed[1].size - }, - { - hash: sha256(value + size), - size: value.length - value: <some buffer> - } +var log = [ +{ + hash: hash(value + size), + size: value.length + value: <some buffer> +}, +{ + hash: hash(log[0].hash+log[2].hash+size), + size: log[0].size + log[1].size +}, +{ + hash: hash(value + size), + size: value.length + value: <some buffer> +} ] ``` diff --git a/papers/dat-paper.pdf b/papers/dat-paper.pdf Binary files differindex 0ade82b..e2ee90f 100644 --- a/papers/dat-paper.pdf +++ b/papers/dat-paper.pdf |