waku-org / js-waku

JavaScript implementation of Waku v2
https://js.waku.org
Apache License 2.0
162 stars 41 forks source link

feat: generate proofs from roots without merkle tree #1919

Open weboko opened 4 months ago

weboko commented 4 months ago
This is a **feature request** ## Problem This is planned work for js-waku PoC that @alrevuelta proposed here - https://github.com/waku-org/research/issues/79#issuecomment-1997341027 ## Proposed Solutions Needs to be done: - (if not done) update `zerokit` wasm to expose added API for generating proofs by passing only roots; - use this API in `@waku/rln` [here](https://github.com/waku-org/js-rln/blob/3dc59084c9cc5410efa54dd20207bc0ffc6ab299/src/zerokit.ts#L77) - update `Encoder`/`Decoder` to use new API; - create PoC based on [the example](https://github.com/waku-org/lab.waku.org/blob/5e1be42b9d045f0bf51c1c31267e8c954412acef/examples/rln-js/src/rln.js#L3) to use the changes; After that we can sync on discussing next steps. ## Notes - Non blocking part of https://github.com/waku-org/pm/issues/109 - Connected to https://github.com/waku-org/pm/issues/148
weboko commented 4 months ago

@adklempner do you want to work on this issue?

weboko commented 3 months ago

Moving In progress as it is already already started. am I correct, @adklempner ?

Linking a bug fixed in the scope of this working item - https://github.com/waku-org/js-rln/pull/103

weboko commented 2 months ago

I think we should consider this task to be done as there is no additional steps needed to be done.

weboko commented 2 months ago

@adklempner can you share some info and links to PRs so that we won't loose this knowledge?

Feel free to write a note here.