Skip to content

Conversation

@fryorcraken
Copy link
Contributor

First draft - early review only for Waku leads.

@fryorcraken fryorcraken requested a review from jm-clius August 5, 2025 03:37
Copy link
Contributor

@jm-clius jm-clius left a 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!

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.
Copy link
Contributor

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:

Suggested change
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.

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).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants