- 1.Zkopru contract transfers the given amount of assets from the user's account to itself.
- 2.It verifies that the
notehas a valid hash of the given information.
- 3.It merges the note to the last item of the
MassDeposit is a single
mergedLeavesbytes32 value to be used for rollup proof. Please check what is
mergedLeavesfor rollup proof here. If the coordinator proposes a block including MassDeposits, the block appends all notes in the MassDeposit to its UTXO Merkle tree.
Coordinators can include only the "committed" MassDeposits that do not change anymore. To include a MassDeposit, the coordinator monitors the
Depositevent from the Zkopru contract.
It is important to push the deposits to the layer-2 as quickly as possible. Therefore, it freezes the latest MassDeposit when the coordinators propose every new block.
Yes, it is possible to include several MassDeposits at once in the range of maximum challengeable cost.