Add notes on rollups

This commit is contained in:
bt3gl 2022-06-12 18:54:46 -07:00 committed by GitHub
parent e9521c9827
commit 77a0d38888
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,28 @@
## Some security notes on L2s and Rollups
<br>
* The current Ethereum version has low transaction throughput and high latency in processing. This means that transactions are both slow and prohibitively expensive, due to high demand, relative to what the network can take at any given time.
### Scaling solutions
There are two types of scaling solutions:
- On-chain scaling refers to any direct modification made to a blockchain, like data sharding and execution sharding in the incoming Ethereum 2.0.
- Off-chain scaling refers to any innovation outside of a blockchain, i.e., the execution of transaction bytecode happens externally instead of on Ethereum
### Optimistic Rollups
* Instead of executing and storing all the data on Ethereum, where transactions are only processed at a premium, we only store a summary.
* All the actual computation and storage of contracts and data is done on L2.
* Rollups inherit Ethereum's security guarantess, while still acting as an efficient scalin solution.
* Optimistic rollup batch together off-chain transactions into braches, without a proof of their validity.
* When assertions of the L2 state are posted on-chain, validators of the rollup can challenge the assetion when they think there is a malicious state (fraud detection).
### Optimism
* Optimism is a scaling solution based on the concept of optimistic rollups.
* It depends on "fault proofs" which is a way of detecting whether a transaction being verified is incorrect.
* Optimism handles fault-proofs using OVM 2.0.