Let's start 2022 off with the basics and dive into the Ethereum Virtual Machine (EVM), the current smart contract standard, and how it works. We'll also discuss how L2s open the door to a supercharged EVM!
🧵👇
The ETH blockchain exists to run a state machine, the EVM. Let's break it down further, and discuss what a state machine is!
A state machine is any machine that takes inputs and provides outputs based on those inputs. Here's a diagram of a simple state machine:
Your computer is a (very complex) state machine. It takes user and program inputs and changes state depending on the inputs.
Now that we have basic knowledge of state machines, onto the EVM. Every wallet, token, and smart contract lives inside this state machine. Think of the Ethereum Virtual Machine as a distributed computer that everyone has access to.
Bitcoin blocks update the Bitcoin ledger to track wallet balances and synced between nodes. The EVM uses blocks to update the machine state and make sure the state is synced across the network.
When you send an Ethereum transaction, you sign + send an instruction to this machine to change state. This allows for arbitrary flexibility with dApps and smart contracts, as well as value transfer just like Bitcoin!
Here's a diagram from ethereum.org for an EVM visualization.
Alright, so why does changing the machine state cost Gas? Gas is the cost of changing state. The more complex the state change is, the more it costs. There is also a gas limit per block. This keeps the network secure.
Because the state change (execution) is on-chain, there is a limit to the complexity and a cap on how much the state can change at any given time, as the blocks have limited space. With rollups, the execution is off-chain.
The completed output of the state change is then "rolled up" into the equivalent of a .zip file of transactions and published to Ethereum L1. There's a lot of fancy math involved proving that the state changes were legitimate, but that's for another time.
With zero knowledge rollups, gas isn't as much of an issue, which opens the door to smart contracts that would be impossible on L1! #L222 is here, and the future is VERY bright.
• • •
Missing some Tweet in this thread? You can try to
force a refresh
yesterday i wrote about zk proofs which separate execution from validation and verification. so what are blockchains moving towards beyond L2s?
another 🧵👇
after we solve zk rollups, development is far from done. there's one looming problem: data availability. when everything in the world is run on a blockchain, where/how do you store the transaction info while remaining decentralized?
there are a few projects tackling this, like @ethswarm and @CelestiaOrg, but research is even more bleeding-edge than ZKs are- i expect the narrative to shift to DA a few years from now.
all these zk terms... what do they mean? what's the big deal with zk proofs?
a quick 🧵breaking it down: 👇
zero knowledge (zk) cryptography is very new and an active field of research, but we're very close to having it ready for primetime with @zksync and @StarkWareLtd. let's discuss what this means for the future of ETH and blockchains in general
previously, blockchains have required all pieces of a transaction to be bundled together (verification, validation, and execution) which bottlenecks the whole process and makes it hard to scale while remaining decentralized
gm frens 2022 is fast approaching. after marking my 3rd year in crypto/web3 full time, i'm gonna drop a 🧵of things i wish i knew when i started, since i saw a lot of new faces this year.
stop short term trading - buy your bags and stick with them. fees.wtf says I've spent over 8 eth on gas in just 1 wallet this year
hang out in DAOs you care about - there is NO better way to meet like-minded people than DAOs. Build with them if you can.