MerkleTreeOperator::getMerklePath() will revert due to OOG after enough elements
Description
MerkleTreeOperator::getMerklePath() searches the tree in linear time for the index of the requested _noteCommitment.
Thus, it will run out of gas or timeout when using rpc providers when enough leaves are added.
Recommendation
Store the index of each leaf in a mapping.
Status
Acknowledged