2.0.4
RLN (Rate-Limiting Nullifier) is a zk-gadget/protocol that enables spam prevention in anonymous environments.
The core of RLN is in the circuit logic, documentation here. RLNjs provides easy management of the registry and proof creation.
This library provides three main classes: RLN, Registry, and Cache.
RLN
The RLN class provides the core functionality of the RLN protocol. It provides the ability to generate a proof and verify a proof.
Registry
The Registry class provides the ability to manage the registry. It provides the ability to add, remove, and slash members from the registry.
Cache
The Cache class provides the ability to cache proofs by epoch and automatically recovers secrets if the rate limit is exceeded.