Open fryorcraken opened 12 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
@richard-ramos can you please provide details?