Store protocol hash type and inputs (#353)

* specifies the hash function

* explains the input to the hash
This commit is contained in:
Sanaz Taheri Boshrooyeh 2021-04-22 10:56:10 -07:00 committed by GitHub
parent c7d5a40056
commit b32004b1b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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