-
Notifications
You must be signed in to change notification settings - Fork 3
Waku's Requirements on a Consensus Mechanism #333
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
base: master
Are you sure you want to change the base?
Conversation
jm-clius
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is a good description of current on-chain use case. Thanks!
requirements/consensus.md
Outdated
| All Waku network nodes must enforce identical message validation rules to prevent network splits at the libp2p-gossipsub layer. | ||
| This necessitates consensus on the Merkle tree’s state across the network. | ||
|
|
||
| To achieve this, range validation is employed: a node verifies messages against the current root and a set of previous roots, accommodating proofs generated on recent prior roots. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The clarification helps, but I find "range validation" unclear - why not:
| To achieve this, range validation is employed: a node verifies messages against the current root and a set of previous roots, accommodating proofs generated on recent prior roots. | |
| To achieve this, a node verifies messages against the current root and a window previous roots, accommodating proofs generated on recent prior roots. |
requirements/consensus.md
Outdated
| Re-evaluation may occur during migration to Status Network, given potential closer relation with RPC providers. | ||
|
|
||
| *Note:* These constraints primarily affect Waku Relay nodes (cloud/laptop-based). | ||
| Edge nodes (mobile/browser) require less frequent RPC access due to lower message volume and relaxed time constraints—since they verify messages without forwarding them (unlike relays, which must validate before propagation). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Edge nodes (mobile/browser) require less frequent RPC access due to lower message volume and relaxed time constraints—since they verify messages without forwarding them (unlike relays, which must validate before propagation). | |
| Edge nodes (mobile/browser) require less frequent RPC access due to lower message volume and relaxed time constraints—since they verify only the small subset of messages of interest to them. |
This seems more accurate to me, at least in terms of what we plan - edge nodes still need to verify messages that they publish with own RLN membership and probably messages that they receive via filter subscription too. However, this is presumably low-rate and can use some on-demand RPC-call strategy.
First draft - early review only for Waku leads.