-
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
Onchain RLN + L2 #56
Comments
Can EIP-4844 be relevant here? It introduces cheaper ephemeral on-chain storage with rollup data availability as the main use case. |
I don't think we'll use blobs directly, just as a consequence of using an L2 |
As we discussed it back then it is important to expose API to get only needed part of the tree for proof generation, @rymnc |
After further investigation, here are a couple of points re:viability of having the whole tree on-chain -
For clients that want to just verify and relay messages on TWN, having the root onchain makes it easy. They don't need to sync the tree, instead, just look at the contract and verify that a message has the right root. (+ for light clients) For clients that want to generate proofs, we can add a view function to the contract which returns the pathIndices and pathSiblings for a given index. Therefore, the process to generate proofs in a light client would be -
|
cc: @alrevuelta closing the loop on the conversation we have had out of band, and in the vacp2p/rln-contract PR I've deployed the contracts (with the whole tree onchain) to polygon-zkevm-testnet and sepolia They have been verified. |
As discussed with @rymnc we will look into having the whole RLN tree onchain:
The idea is to do a PoC to asses if this is the way to go, and if it solves the problem stated in #45
The text was updated successfully, but these errors were encountered: