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
 

Keep Current with pseudotheos (🌹, 📺)

pseudotheos (🌹, 📺) Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @pseudotheos

30 Dec 21
yesterday i wrote about zk proofs which separate execution from validation and verification. so what are blockchains moving towards beyond L2s?

another 🧵👇 Image
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.
Read 10 tweets
30 Dec 21
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
Read 10 tweets
28 Dec 21
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.
Read 5 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(