Because this is how a weekend should look like, here a random thread on StarkNet architecture:

StarkNet is the result of our work on Cairo. Cairo is a language/VM optimized for ZKPs.
Cairo as a VM has the structure of CPU (CPU-AIR --> Cairo). 1/8
As a consequence, it can run with a single circuit (called AIR in the context of Starks) and prove multiple programs within the same proof.
Since we have a CPU, we can now program an Operating System. This is why the official name for StarkNet is StarkNet OS. 2/8
The StarkNet OS is responsible for every core protocol level program.
- State Management
- L1 <> L2 communication
- Contract Execution
- Cross contract calls
- Calling Cairo to run each program
- Tx structure
- Others... 3/8
Things that are not core protocol are bridges, accounts, escape hatch, and others.

A few cool differences with Ethereum:
1. Everything in StarkNet is a program of StarkNet, even wallets are contracts and implement as such. 4/8
2. We don’t have a notion of canonical bridges, anyone can deploy one. Direct consequence: Self-custody can be managed at the applicative level with great granularity.
3. StarkNet does not publish bytecode on L1, making it very cheap to deploy. 5/8
Direct consequence: One can have a relatively large contract beyond 32kb. Max size is not yet known but should be much larger.
Turning everything into a contract might be confusing for people familiar with Ethereum but it is worth it. 6/8
The advantages in terms of protocol simplicity and user UX (no more logical separation between Eth and rest of ERC20, no more need for the permit logic in ERC20,…) are tremendous.
This was my first attempt at describing StarkNet. 7/8
More posts will come as well as in-depth documentation.
In the mid-time, if you want to learn more about Cairo and StarkNet, stay tuned or join our Discord: discord.gg/9JX4sGHDHR 8/8

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Louis Guthmann

Louis Guthmann 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 @GuthL

12 Oct
An interesting fact, little known in the community:
Roughly, half of ERC20 in the market are implementing the standard called ERC-20 Snapshot (docs.openzeppelin.com/contracts/3.x/…).
1/9
You may not believe me but @Uniswap Uni is using it, @AaveAave stAave is using it and all tokens used in Snapshot right now are implementing this standard.
Here is Uni implementation
2/9
It might sound surprising but this implementation has an annoying side effect. It adds between 20k to 100k gas per transfer. After 3 069 472 txs on UNI ERC-20, at an average of 50gwei (at current eth price), this feature costs the community a minimum of 0.3$ per transfer
3/9
Read 11 tweets
29 Jul
1/n We just publish the new extension of dAMM on which I have been working for some time with @Brechtpd from Loopring. I believe it could be a groundbreaking design in the upcoming multi L2s.
A quick thread 🧵:
@Brechtpd 2/n For those who follow @StarkWareLtd work, we publish a few months back the first version of dAMM: an L2 AMM design where the restrictions are enforced on L1, simplifying greatly the AMM design of a constrained system like StarkEx.
3/n Not only it provides a simpler design, but it also provides additional advantages like the ability to lend the pool asset using an Asset Manager as proposed by BalancerV2.
Read 16 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 Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(