Open 0xDatapunk opened 2 months ago
https://github.com/privacy-scaling-explorations/zk-kit/blob/aa02c6df831e0b40f4cffc11ec5e92a1c8c319cb/packages/imt/src/imt.ts#L227
does it make sense to check if newLeaf != this._nodes[0][index] first?
newLeaf != this._nodes[0][index]
Yes, it makes sense!
https://github.com/privacy-scaling-explorations/zk-kit/blob/aa02c6df831e0b40f4cffc11ec5e92a1c8c319cb/packages/imt/src/imt.ts#L227
does it make sense to check if
newLeaf != this._nodes[0][index]
first?