diff --git a/solidity/l2_and_rollups/README.md b/l2_and_rollups/README.md similarity index 73% rename from solidity/l2_and_rollups/README.md rename to l2_and_rollups/README.md index 711c6bd..b150de9 100644 --- a/solidity/l2_and_rollups/README.md +++ b/l2_and_rollups/README.md @@ -1,9 +1,10 @@ -# Some security notes on L2s and Rollups +# L2s and Rollups
* 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 @@ -17,14 +18,16 @@ Currently, we can distinguish between two leading L2 solutions as: - Zero-Knowledge (zk) rollups, and - Optimistic rollups +
-### Zk-rollups +### zk-rollups * zk-rollups bundle together many off-chain transactions into a single verifiable batch using zk-SNARK. * zk-SNARK is an extremely efficient, zero-knowledge proof that allows one party to prove it possesses certain information without revealing that information. These validity proofs are then posted to the Ethereum blockchain. +
-### Optimistic Rollups +### 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. @@ -32,8 +35,35 @@ Currently, we can distinguish between two leading L2 solutions as: * 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 +### state channel + +* setting up channels between parties to form an off-chain network within which many transactions take place +* final state is updated on ethereum + +
+ +### side cain + +* conduct txs in a separate blockchain with its own consensus mechanism +* assets and data are transferred with ethereum through a smart contract that locks assets and recreates representative opens in the side chain + + +
+ +### plasma chain + +* similar to side chains, functioning as separate chains with their own consensus mechanisms +* roots of each block are published to ethereum, which makes the system more secure but limits its ability for complex operations + + +
+ +---- + + +## 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.