Open weboko opened 7 months ago
@waku/rln maintains its roots here by essentially relying on zerokit to give it current root here.
@waku/rln
zerokit
These roots lately are used to verify a proof - which is done again inside of zerokit here.
Expose from wasm following API:
wasm
getRoots
roots
getRoots still can be exposed as might be used later or by a consumer.
Ice boxing for now. Re-prioritizing after approach to RLN is clear in light clients.
Problem
@waku/rln
maintains its roots here by essentially relying onzerokit
to give it current root here.These roots lately are used to verify a proof - which is done again inside of
zerokit
here.Solution
Expose from
wasm
following API:getRoots
- gives requested amount of latest roots (default to 5);roots
to verify as they are already inside ofzerokit
;getRoots
still can be exposed as might be used later or by a consumer.