You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 20, 2024. It is now read-only.
Perform a hash of all possible state batch variables into a single value hashBatch. This will allow to save data on-chain and reduces the gas cost of the forgeBatch function.
The trade-off is that the entire bash state has to be submitted to the forgeBatch function call.
Note that this apply every time that anydata has to be checked against stateRoot or exitRoot. For example in withdraw functions and further massive migrations implementations.
Hash batch
Perform a hash of all possible state batch variables into a single value
hashBatch. This will allow to save data on-chain and reduces the gas cost of theforgeBatchfunction.The trade-off is that the entire bash state has to be submitted to the
forgeBatchfunction call.Specifciation
txData: All data availabilitywithrdawalMerkleProof&withrdawalCircuitstateRoot,exitRoot&hashTxDataas parameters to computehashBatchto be checked against the mapping