This documents describes the APIs, inner working of Interval Merkle Tree (IMT), a cryptographic accumulator that we use to instantiate Nullifier Set which require efficient non-membership proof and member insertion in circuit.
Complexity
For an IMT of height $h$ of size $N = 2^h$, batch insertion size $K=2^k, h > k$:
Both Add and BatchAdd circuit checked non-membership before inserting.
Add
BatchAdd
Native Execution