Sooraj 🚢 Profile picture
Apr 12 12 tweets 4 min read
''Determinism'' is a core feature of #Cardano's E-UTxO ledger model

This is one of those features that differentiate and brings an edge over the indeterministic nature of #Ethereum's Account based ledger model

So let's dive in and explore the concept of ''Determinism'':🧵👇 Image
So what is Determinism?

in the context of transaction and script processing

Determinism is the ability that enables a user to predict the impact and outcome of a transaction locally (off-chain)

before the actual on-chain execution of the transaction
This is a core feature of E-UTXO-based blockchains, like Cardano

So why are E-UTxO-based blockchains deterministic?

What is the feature that allows for the off-chain predictability of the outcome of the transactions?
As we know

the main difference between an E-UTxO and an Account-based ledger model is the difference in state

in E-UTxO based model state is ''local''

whereas in an account-based model the state is ''global''
So when a user creates and submits the transaction on an E-UTxO based blockchain

due to the localized nature of the state

they are explicitly declaring what their section of the ledger should look like after the transaction is accepted
this makes the off-chain predictability of the outcome of the transaction possible

this prevents the following from happening in the case of E-UTxO:

1. unexpected script validation outcomes or failures

2. unexpected fees

3. unexpected ledger or script state update
So let's understand what happens when a chain is indeterministic!

Account-based blockchains, like #Ethereum, are indeterministic

which means

#Ethereum/EVM cannot guarantee the predictability of the transaction’s effect on-chain
#Ethreum/EVM cannot do it

because the state of the blockchain could change between when you construct your transaction and when you submit it

in this case

the smart contract needs to be trusted to do what’s in the best interest of the person who submitted the transaction
that means when a developer code the smart contract

he/she needs to consider all the possible scenarios

where a state change could happen during the execution of a transaction
This is almost impossible to do

And a huge amount of development effort, source of bugs, and attack surface area for hacks come from this particular flaw

so the next time when your transaction fails on #Ethereum/EVM-Chain

think about the indeterministic nature of the ledger
TL;DR -

• In contrast to E-UTxO, Account-based blockchains like #Ethereum or EVM-Based chains are indeterministic

• This risks monetary loss, unpredictably high fees, and additional opportunities for adversarial behavior
If you found this thread valuable:

1. Toss me a follow for more threads on technical deep dives and Defi→ @Soorajksaju2

2. If you are curious about upcoming upgrades on #Cardano, here’s a thread that you might enjoy:

• • •

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

Keep Current with Sooraj 🚢

Sooraj 🚢 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 @Soorajksaju2

Apr 14
''Ouroboros consensus Protocol'' is the heart of #Cardano

which gives it rigorous security guarantees comparable to those achieved by the Nakamoto consensus of #Bitcoin

Here’s a breakdown of the tech that makes #Cardano more similar to #Bitcoin than any other L1 out there:🧵👇 Image
Let's start from the first principles like #Cardano does it!!

So what is a consensus Protocol?

It is a method through which all the peers of the distributed decentralized network (for eg: #Bitcoin) reach a common agreement about the present state of the distributed ledger
So what is the current state of consensus of most blockchains out there?

The prevalent types of consensus models used by blockchains are the classical consensus and the Nakamoto consensus algorithm
Read 25 tweets
Apr 11
This year #Cardano is anticipating multiple enhancements & optimizations to increase its throughput

''Input Endorsers' is one of the most anticipated upgrades on #Cardano

So let's take a look at this concept and how it is helping #Cardano to increase its throughput
It is a novel concept initially discussed in the ''Ouroboros” Research paper by @InputOutputHK

The implementation of input endorsers aims to separate transaction selection from block production

So let's explore this concept a bit deeper
So what exactly are these ''Input Endorsers''?

According to the ''Ouroboros” Research paper

Input Endorsers are similar entities to the block producers on #Cardano
Read 15 tweets
Apr 10
This year #Cardano is anticipating the implementation of multiple performance enhancements to increase its throughput

''Diffusion Pipelining'' is one of the most anticipated upgrades on #Cardano.

So let's dive in and see how it helps #Cardano to increase its throughput

🧵👇
Earlier this year IOG increased the block size to 80KB to increase throughput of Cardano

The logic is simple: The bigger the block, the more transactions it can carry

But there is a catch: The bigger the block, the more time it takes to propagate the block through the network
So how can you increase the throughput by increasing the block size?

and still, keep the current block propagation time

To understand the changes needed to achieve that,

one should have a basic understanding of how ledger consensus works in general
Read 16 tweets
Apr 9
Ethereum's Account-based ledger model is dominating the DeFi space for now!!

but DeFi on #Cardano is on the rise.

Here are the reasons why E-UTxO ledger archictecture of #Cardano is superior to the Account-based model of #Ethereum

🧵👇
So what are the different ledger models?

1. #Bitcoin 's UTxO (Unspent Transaction Output) - ledger model

Satoshi invented #Bitcoin to be the permissionless decentralized internet money

Bitcoin introduced the UTxO ledger model to fulfill that purpose in the most elegant way
In the UTXO ledger model

individual transactions consist of a list of ''inputs'' and ''outputs''

and

the sum of the values consumed by a transaction’s inputs must equal the sum of the values provided by its outputs
Read 20 tweets
Apr 8
Have you ever wondered!!

Why there is ''Slippage'' when you use an AMM (Automated market maker) like Uniswap, Trader Joe, or Sundae swap to trade your token?

What is causing the slippage?

What is the influence of ''Liquidity'' on slippage?

Here’s a breakdown of each one: 🧵👇
‘Slippage’ is a phenomenon where a market participant exchanges their assets at a loss

compared to the original market value

due to insufficient liquidity at the initial price point

But we rarely experienced slippage on Binance or Coinbase

Why is it happening on Uniswap?!!
To understand ''Slippage'' one must understand the concept of ''Liquidity''

In a traditional sense

''Liquidity'' refers to the ''efficiency or ease'' with which an asset can be converted into cash or another asset

without affecting the Asset's market price
Read 14 tweets
Apr 7
''Concentrated liquidity'' was introduced by Uniswap V3 to reduce the ''Impermanent loss''

But Liquidity providers still incur impermanent loss on Uniswap V3

So why is this happening?

and

How the solution to this problem may lie in E-UTxO ledger architecture of #Cardano

🧵👇
What is ''Concentrated liquidity''?

Compared to an order book model

an AMM (automated market maker) suffers from capital inefficiency and impermanent loss

Concentrated liquidity was introduced by Uniswap V3 to increase capital efficiency and reduce impermanent loss
How does it work?

The LPs can allocate their capital at specific price ranges called ''range orders''

Fees for providing liquidity are collected only at this price range

When asset prices exit the bounds of range order

no liquidity is provided and no fees are collected Image
Read 18 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

Don't want to be a Premium member but still want to support us?

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!

:(