waku-org / js-rln

Browser library providing the cryptographic functions for Waku RLN Relay https://rfc.vac.dev/spec/17/
Apache License 2.0
5 stars 1 forks source link

feat: expose roots from zerokit #105

Open weboko opened 7 months ago

weboko commented 7 months ago

Problem

@waku/rln maintains its roots here by essentially relying on zerokit 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 still can be exposed as might be used later or by a consumer.

weboko commented 6 months ago

Ice boxing for now. Re-prioritizing after approach to RLN is clear in light clients.