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

clean nullifier table #68

Open fryorcraken opened 12 months ago

fryorcraken commented 12 months ago

@richard-ramos can you please provide details?

richard-ramos commented 9 months ago

I think we don't have a nullifier log in js-rln although it would be a good addition, since it can be used to detect if a message is duplicated or not:

Here's how it is used within go-waku's validator used by waku relay: https://github.com/waku-org/go-waku/blob/b7105f9b9f64fa12fed6ca2fb2d52ab80584a560/waku/v2/protocol/rln/waku_rln_relay.go#L162-L180

And the logic for the cleanup: https://github.com/waku-org/go-waku/blob/master/waku/v2/protocol/rln/nullifier_log.go#L91-L120