Add new field to L2 transaction data which allows a transaction to have a timeout measured in batch numbers. Hence, the transaction could not be processed if maxNumBatch is greater than the current batch number.
New input must be added to the circuit, forced by the smart contract, which would be the currentNumBatch.
hashGlobalInputs
New input currentNumBatch must be added to the hashGlobalInputs:
L2 transaction field will add maxNumBatch in order to be signed. Note that this new field is added into the e_1 field element when computing the L2HashSignautre:
**Field element notation**
e_1:[ 160 bits ] toEthAddr
[ 32 bits ] maxNumBatch
Total bits e_1: 192
Feature
Add new field to L2 transaction data which allows a transaction to have a timeout measured in batch numbers. Hence, the transaction could not be processed if
maxNumBatch
is greater than the current batch number. New input must be added to the circuit, forced by the smart contract, which would be thecurrentNumBatch
.hashGlobalInputs
New input
currentNumBatch
must be added to thehashGlobalInputs
:L2 transaction field and signed message
L2 transaction field will add
maxNumBatch
in order to be signed. Note that this new field is added into thee_1
field element when computing theL2HashSignautre
:Steps
maxNumBatch
currentNumBatch
maxNumBatch < current-batch