Skip to content
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

PoC: rln-v2 in waku #2345

Closed
17 tasks done
Tracked by #3074
rymnc opened this issue Jan 10, 2024 · 3 comments · Fixed by #2501
Closed
17 tasks done
Tracked by #3074

PoC: rln-v2 in waku #2345

rymnc opened this issue Jan 10, 2024 · 3 comments · Fixed by #2501

Comments

@rymnc
Copy link
Contributor

rymnc commented Jan 10, 2024

Problem

We do not have arbitrary messaging rates with rln in waku, leading to only 1 message per epoch (set to 1 second)

Suggested solution

We make use of rln-v2 instead of rln-v1, which brings variable messaging rates depending on the user's stake.

Till we have a viable tokenomics model for rln-v2, we will just proceed with linearly scaling the stake with the messaging rate.

Sub-issues for incremental changes

Additional context

Zerokit release: https://github.com/vacp2p/zerokit/releases/tag/v0.4.1

Acceptance criteria

  • A user is able to register themself to the rln-v2 membership set and send multiple messages per epoch
@rymnc rymnc added the E:RLN on mainnet see https://github.com/waku-org/pm/issues/98 for details label Jan 10, 2024
@rymnc rymnc self-assigned this Jan 10, 2024
@rymnc rymnc added this to Waku Jan 10, 2024
@rymnc
Copy link
Contributor Author

rymnc commented Jan 10, 2024

cc: @jm-clius @fryorcraken @alrevuelta @kaiserd

@fryorcraken
Copy link
Collaborator

We make use of rln-v2 instead of rln-v1, which brings variable messaging rates depending on the user's stake.

Till we have a viable tokenomics model for rln-v2, we will just proceed with linearly scaling the stake with the messaging rate.

Can you clarify what exact number we could look into?e,g, you lock 1DAI and you get 1000msgs/day, 2DAY you get 2000msgs/day? This is cool.

@rymnc
Copy link
Contributor Author

rymnc commented Feb 6, 2024

yes, something along those lines. however, a day is too large of an epoch size to use - consider the calculations below

users = 10_000
nullifier_size = 128 bytes (with metadata)
epoch size = 1 day
avg_user_message_limit = 1_000


total storage used = 10_000 * 128 * 1_000 = 1.2 gigabytes (in memory)

if the day epoch size is a requirement from waku, we can work on a persistence layer for the nullifier table, but we will raise the hardware requirements for running a node on the network by consequence.

@github-project-automation github-project-automation bot moved this from In Progress to Done in Waku Mar 12, 2024
@chair28980 chair28980 changed the title PoC: rln-v2 in waku [Epic: nwaku] PoC: rln-v2 in waku Jun 19, 2024
@chair28980 chair28980 added Epic E:nwaku RLNv2 in nwaku and removed Epic E:RLN on mainnet see https://github.com/waku-org/pm/issues/98 for details labels Jun 19, 2024
@chair28980 chair28980 changed the title [Epic: nwaku] PoC: rln-v2 in waku PoC: rln-v2 in waku Jun 19, 2024
@chair28980 chair28980 removed the Epic label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants