Gas costs
An insertion (via insertIdentity()
costs around 68k gas.
broadcastSignal()
, which includes proof verification, costs around 355k gas.
By contrast, a Tornado Cash deposit (which involves inserting a leaf to a Merkle tree) costs 907787 gas and a withdrawal (which involves a Groth16 verification step) costs 327188 gas.