Skip to content

Commit 278fe2b

Browse files
authored
Update json-rpc-to-proof.md
3 fixes in the doc
1 parent 3c1710f commit 278fe2b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

docs/zkEVM/architecture/proving-system/json-rpc-to-proof.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ With this implementation approach, the sequencer needs to ensure that block cons
112112

113113
The sequencer can modify the timestamp of the various blocks in a batch by utilizing a specific transaction as a marker, dubbed `changeL2Block`.
114114

115-
This transaction is included in the batch to indicate a change from one block to the next
116-
117-
in blocks and is responsible for modifying the timestamp and the L2 block number.
115+
This transaction is included in the batch to indicate a change from one block to the next, is responsible for modifying the timestamp and the L2 block number.
118116

119117
The figure below depicts the structure of the Etrog upgrade's batches.
120118

@@ -132,9 +130,9 @@ The information is retrieved with the same RPC call as in Ethereum.
132130

133131
Users are less concerned with the transaction being in a block, and more with when the newly generated batch results in a state transition.
134132

135-
The zkEVM protocol has additional endpoints for retrieving various information pertaining to the status of the L2 block.
133+
The zkEVM protocol has additional endpoints for retrieving various information pertaining to the state of the L2 block.
136134

137-
For example, the user may query whether a block is virtualized or not by using a specific endpoint as shown in the figure below.
135+
For example, the user may query whether a block is in the virtual state or not by using a specific endpoint as shown in the figure below.
138136

139137
![Figure: Checking if block is virtualized](../../../img/zkEVM/rpc-check-if-block-virtual.png)
140138

@@ -184,8 +182,7 @@ In the `validateTx()` function performs the following preliminary checks:
184182

185183
3. The transaction’s `chainID` is the same as the pool’s `chainID` (which is the `chainID` of the L2 Network) whenever `chainID` is not zero.
186184

187-
4. The transaction string has an encoding that is accepted by the zkEVM. (See the next subsection for more details on this encoding.)
188-
185+
4. The transaction string has an encoding that is accepted by the zkEVM. (See the [next subsection](./json-rpc-to-proof.md#zkevm-customized-transaction-encoding) for more details on this encoding.)
189186
5. The transaction sender’s address can be correctly retrieved from the transaction, using the `ecRecover` algorithm.
190187

191188
6. The transaction size is not too large (more specifically, larger than 100132 bytes), to prevent DoS attacks.

0 commit comments

Comments
 (0)