Protocol: Waku's Rate-Limiting Nullifier for privacy preserving spam protection #180
Open
1 of 8 tasks
Labels
enhancement
New feature or request
For privacy preserving p2p economic spam protection the Waku team designed rate-limiting nullifiers.
Prerequisites:
Note, the PoC is based on https://github.com/matter-labs/pairing (Zcash pairing "community edition") which uses ff "Community edition" which does support MULX/ADCX/ADOX assembly: https://github.com/matter-labs/ff/blob/aca3a18/ff_derive/src/asm/impls_4.rs, hence the following speedup of Constantine over pairing_ce are NOT due to the use of Assembly since the low-level playing field is even.
Pairing_CE
cargo +nightly bench
with fixes from matter-labs/pairing#8 (s/use pairing::/use pairing_ce::/g
ands/G1::one()/<G1 as GenericCurveProjective>::one()/g
, etc)Constantine
nimble bench_summary_bn254_snarks_clang
On the costliest operations, Constantine is 2.56x faster on G1 scalar mul, 8.95x faster on G2 scalar mul and 2.97x faster for pairing.
As the difference is algorithmic (described in optimizations.md, WASM would also benefit from those.
The text was updated successfully, but these errors were encountered: