resource: https://github.com/0xPolygonMiden/miden-vm/discussions/356

This protocol thus provides a robust way to handle nullifiers without indefinite growth of the database, ensures privacy via epoch indexing, and offers performance optimizations through hash chains and sequential lookups. The discussion also highlights potential future research areas, such as the use of mutator sets or alternative approaches.

Nullifier Generation and Note Creation:

Nullifier Database Storage (Epoch-based):

Frozen Epoch Roots:

Note Consumption and Non-Membership Proofs:

To consume a note, the following checks need to be performed:

This is done using: