From b32004b1b620f856f1c59fab3dd7ecf85cb056da Mon Sep 17 00:00:00 2001 From: Sanaz Taheri Boshrooyeh <35961250+staheri14@users.noreply.github.com> Date: Thu, 22 Apr 2021 10:56:10 -0700 Subject: [PATCH] Store protocol hash type and inputs (#353) * specifies the hash function * explains the input to the hash --- content/docs/rfcs/13/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/docs/rfcs/13/README.md b/content/docs/rfcs/13/README.md index b898acd2..109a12de 100644 --- a/content/docs/rfcs/13/README.md +++ b/content/docs/rfcs/13/README.md @@ -91,7 +91,8 @@ message HistoryRPC { ### Index To perform pagination, each `WakuMessage` stored at a node running the `13/WAKU2-STORE` protocol is associated with a unique `Index` that encapsulates the following parts. -- `digest`: a sequence of bytes representing the hash of a `WakuMessage`. +- `digest`: a sequence of bytes representing the SHA256 hash of a `WakuMessage`. + The hash is computed over the concatenation of `contentTopic` and `payload` fields of a `WakuMessage` (see [14/WAKU2-MESSAGE](/spec/14)). - `receivedTime`: the UNIX time at which the waku message is received by the node running the `13/WAKU2-STORE` protocol. ### PagingInfo