-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Understanding the data structure for Sync mechanism #63
Comments
💯
How so? We could assume that all message have valid RLN proof to save some bits but we need the payload at some point no?
The ordering of the messages should be
All those are very similar. |
Yeah, so basically the aim here is to sync the
if we do the ordering of |
I misunderstood, the Sync mechanism would only use hashes right?
What I envision;
|
This document provides insight into the type of data structure a Sync mechanism should have. Introduction to Sync store can be found here #62
The Sync mechanism should use
messageHash
as the central entity so a node can uniquely understand the subjected Waku message. So we aim to synchronize a bunch ofmessageHash
es let's say a list of them [msgHash1
,msgHash2
,msgHash3
,...]. There is no need to have a key-value store where themessageHash
is the key and Waku message is the value, because to uniquely syncmessageHash
itself is sufficient.Since there is no deterministic ordering in that case we follow some sort of ordering approach. Serialized based on:
a) Waku message
timestamp
b) in case of conflict then chronological order based on
messageHash
i.e.0xaaaa
->0xabbbb
.The ordering will help in any of the following solutions we aim to go forward with, such as:
The text was updated successfully, but these errors were encountered: