vac:acz:rlnp2p:vac:rln-light-clients


%%{ 
  init: { 
    'theme': 'base', 
    'themeVariables': { 
      'primaryColor': '#BB2528', 
      'primaryTextColor': '#fff', 
      'primaryBorderColor': '#7C0000', 
      'lineColor': '#F8B229', 
      'secondaryColor': '#006100', 
      'tertiaryColor': '#fff' 
    } 
  } 
}%%
gantt
  tickInterval 1month
  dateFormat YYYY-MM-DD 
  section Status
    RLN Light Clients: done, 2024-04-01, 2024-05-01
  • status: 100%
  • CC: Aaryamann

Description

Make use of zk-kit’s LazyIMTto have the merkle proof of a leaf accessible onchain, and the root as well, to allow for light rln provers and verifiers.

Justification

A node attempting to verify RLN proofs takes nearly ~10 minutes to sync all the leaves. We should attempt to see if it is cheap enough to use the LazyIMT structure so that we can have the merkle proof accessible onchain.

Deliverables

RLN VersionGas estimate for insertion
rln-v190k
rln-v1 (lazyIMT)130k
rln-v2135k
rln-v2 (lazyIMT)210k