From 58097e71210a428762aa0bd2a1ab20185d8a7085 Mon Sep 17 00:00:00 2001 From: Max Ogden Date: Fri, 9 Dec 2016 16:03:33 -0800 Subject: update paper --- papers/dat-paper.md | 30 +++++++++++++++--------------- papers/dat-paper.pdf | Bin 232765 -> 231076 bytes 2 files changed, 15 insertions(+), 15 deletions(-) (limited to 'papers') 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: - }, - { - hash: sha256(feed[0].hash + feed[2].hash + size), - size: feed[0].size + feed[1].size - }, - { - hash: sha256(value + size), - size: value.length - value: - } +var log = [ +{ + hash: hash(value + size), + size: value.length + value: +}, +{ + hash: hash(log[0].hash+log[2].hash+size), + size: log[0].size + log[1].size +}, +{ + hash: hash(value + size), + size: value.length + value: +} ] ``` diff --git a/papers/dat-paper.pdf b/papers/dat-paper.pdf index 0ade82b..e2ee90f 100644 Binary files a/papers/dat-paper.pdf and b/papers/dat-paper.pdf differ -- cgit v1.2.3