Ethereum Proof of Work thread.

Consensus (Key Concept): the fault-tolerant mechanism used to agree on account balances and the order of transactions.

The current consensus mechanism used by the Ethereum blockchain is proof of work.

Let's see the key concepts and pros/cons.

📃Table of Contents

- Intro
- What is PoW
- PoW and Mining
- The work in PoW
- PoW and security
- 51% Rule
- PoW Finality
- PoW Energy USage
- Pow Pros
- PoW Cons
Intro

Ethereum uses a consensus protocol called Proof-of-work (PoW).

This allows the nodes of the Ethereum network to:
- agree on the state of the recorded info in the blockchain
- prevents some economic attacks.

In the future, it will be replaced with Proof-of-Stack.
What is PoW

PoW allows the network to come to a consensus, or agree on account balances and the order of transactions.

This:
- prevents users from double-spending
- makes the chain hard to manipulate.
PoW & mining

PoW: an algorithm that sets difficulty/rules for the work miners do.

Mining: the act of adding valid blocks to the chain.

The chain's length helps to:
- follow the correct chain.
- understand the state.

More work done > the chain is longer > more state's certain
PoW & Work

Miners make a race of trial & error to find the block's nonce.

A dataset is repeatedly put. You can get it by downloading & running the full chain.

The hash target is easy to verify, hard to compute.

If a transaction is different, the hash is different => FRAUD.
PoW & Security

Goal: extend the chain and have a single source of truth.

Miners are incentivized to work on the main chain

Users always choose the longest chain.

It's super hard to:
- create new blocks that erase transactions
- create fake blocks
- maintain another chain
The 51% Rule

A malicious miner would need to solve the block nonce faster than everyone else.

To create malicious valid blocks, you need 51%+ network mining power to beat everyone else.

This would need a lot of computing power!
The energy spent could be higher than the gain!
PoW economics

PoW is responsible for:
- issuing new currency in the system
- incentivizing miners.

Miners who create a block get rewarded with 2 ETH and all the block's transaction fees.

Uncle blocks: valid blocks created nearly at the same time. A miner gets 1.75 ETH for it.
Finality 1/2

A transaction has finality when it's part of a block that can't change.

Two valid blocks can get mined at the same time, creating a temp fork.

Eventually, one of the chains will become the accepted chain after a subsequent block has been added, making it longer.
Finality 2/2

Finality is the time to wait before considering a transaction irreversible.

Recommended time: 6 blocks or 1 minute.

After 6 blocks, you can say that the transaction was successful.

This timing doesn't include the transaction wait times picked up by a miner.
PoW Energy Usage

PoW requires a lot of energy to keep the network safe.

For Ethereum, it's currently ~73.2 TWh annually (the amount of a mid-size European country)

This could change with the switch to Proof of Stake.
PoW Pros

✅neutral: No ETH is needed to start and block rewards allow you to go from 0ETH to a positive balance.

✅consensus mechanism tried and tested that worked for many years.

✅pow it's relatively easy to implement compared to proof of stack.
PoW Cons

❌uses up so much energy: bad for the environment.

❌big investment to start mining.

❌mining pools could dominate the game, leading to centralization & security risks.
if you liked this thread, follow @FrancescoCiull4 and RT the tweet below. Thank you.

• • •

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

Keep Current with Francesco Ciulla

Francesco Ciulla 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 @FrancescoCiull4

Jan 24
Ethereum Networks thread.

Key concept: Ethereum is not a network, but a protocol that can be implemented to create different networks.

The most famous, mainnet (used for Ether, the cryptocurrency), is one of them.

What's the difference between Public and Private networks?
Table of Contents

- Intro
- Public and Private Networks
- Mainnet
- Testnet
- Testnet Faucets
- List of EVM networks
- Private Development Networks
- Private Consortium Networks
Intro

Ethereum is a protocol: there are many independent networks that implement this protocol

Networks are different Eth environments to:
- develop
- testing
- prod

Your account will work across the different networks but your balance/transaction history won't carry over.
Read 11 tweets
Jan 23
🔲Ethereum Nodes as a Service thread.

Yesterday we have seen how to spin up your won node.

But what if we don't have time to do that, or we want to rely on an existing infrastructure?

Many different services exist that can do this for us.

Let's see this in 1 min.
Ethereum node services
Table of Contents:

- Intro
- Most common features
- Pros of Node Services
- Cons of Node Services
- Popular Node Services
Intro

Running your own Ethereum node can be challenging.

This is especially true if you are new to the Web3 world.

Node services run optimized node infrastructures, so you can focus on developing the app itself.

⚠Node services should NEVER store your private keys/info.
Read 9 tweets
Jan 23
When I started my Twitter journey I had no idea I would have ever done a single euro online.

I was ver skeptic.

Then something changed...

come in this Twitter space by @eddiejaoude
today to know more

Bloopers thread below 👇

twitter.com/i/spaces/1dRKZ…
Blooper1... that was 5k of followers...
😂😂😂
Read 6 tweets
Jan 18
🔲DECENTRALIZED STORAGE thread

Many of us have an idea of ​​what a database is, but how do we behave when dealing with Ethereum?

We can use something called Decentralized Storage (dStorage for frens)

The good news is that Ethereum itself can be used as a DB.

but ...
Table of Contents

· Definition
· The Problem
· The solution
· Blockchain-based persistence
· Incentive structure
· Contract-based persistence
· Challenge mechanism
· Decentrality
· Consensus
· Tools

Definition

dStorage systems are p2p network of user-operators who hold just a portion of the overall data.

By doing so, they create a resilient file storage sharing system.

Two options.

dStorages can be:
- in a blockchain-based app.
- in a p2p network.
Read 14 tweets
Jan 17
I've dealt with a lot of negative comments in my life.

When I was a coach I had people yelling at me who didn't agree with my choices.

That's why IDGAF on a comment written by an anonymous user who hides behind a keyboard.

But someone does.

So I wrote 6 things FOR YOU.

1- Never take it personally:

Think they:

- had a bad day,
- just broke up.
- lost their job.
- had their car stolen
- had their house burned down

But don't take this as a direct attack on YOU. it's not about what you have done.
2- Responding is usually more harmful than ignoring.

This does not mean that we must passively accept any accusation, but probably answering it will only fuel discussions.

Also, there are people who like to argue all day long.
That's their hobby.
Read 8 tweets
Jan 17
🔲Block Explorers thread.

What is a Block Explorer?

TLDR:
an online tool that helps us to search for data about a blockchain. think it like Google for blockchain.

IN-DEPTH:
If you want to go more in detail, here is a thread based on Ethereum docs and other online sources

Table of Contents

· Definition
· Block Explorer Examples
· Why
· How to use Block Explorers
· Ethereum transparency
· Blocks Standard data
· Blocks Advanced data
· Uncle blocks
· Gas
· Txn Standard Data
· Txn Advanced Data
· User Accounts
· Smart Contracts
· Tokens
· Network

Definition

Block explorers are like a search engine for a blockchain.

They provide insight into every blockchain's aspect, by enabling to search for real-time and historical information about a blockchain, for example:
- transactions.
- addresses.
- data related to blocks.
Read 20 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!

:(