0Pricing
Web3 & DApp Development Fundamentals · Lezione

Proof of Stake

Validatori e staking

Proof of Stake è una lezione Web3 & DApp Development Fundamentals gratuita su CoddyKit. Questa è la lezione 2 di 4. Puoi leggere la lezione completa qui gratuitamente — poi esercitati direttamente nel browser con un editor di codice integrato e un tutor IA disponibile 24/7. Fa parte del percorso di apprendimento Web3 & DApp Development Fundamentals, e i tuoi progressi si sincronizzano tra il web e l'app CoddyKit. Il corso Web3 & DApp Development Fundamentals include 4 lezioni in totale.

Parti di questa lezione non sono ancora state tradotte e vengono mostrate in inglese.

Why an Alternative to PoW?

Proof of Work is secure but energy-hungry. Proof of Stake (PoS) seeks the same security guarantees while using a tiny fraction of the energy.

Ethereum switched from PoW to PoS in 2022 in an event called The Merge.

What Is Proof of Stake?

In Proof of Stake, the right to create a block is tied to how much cryptocurrency a participant locks up, or stakes, rather than how much computation they do.

Block creators are called validators, not miners.

Validators

A validator deposits a stake to participate in producing and attesting to blocks. On Ethereum, the required stake is 32 ETH per validator.

Validators propose blocks and vote (attest) that other blocks are valid.

Validator {
    stake:   32 ETH
    status:  active
    role:    propose + attest
}

Staking

Staking means locking up funds as collateral. This stake is the security deposit that keeps validators honest.

If you behave correctly you earn rewards; if you cheat, your stake is at risk.

Choosing a Block Proposer

The protocol pseudo-randomly selects one validator to propose the next block, often weighted by stake size.

Because selection is random and based on stake rather than hashing, there is no energy-intensive race.

Each slot:
  proposer = randomSelect(
      activeValidators,
      weightedByStake)
  proposer builds the block

Attestations

Other validators issue attestations — signed votes confirming a proposed block is valid and is the head of the chain.

When enough attestations accumulate, the block becomes part of the canonical chain.

Rewards

Validators earn rewards for proposing blocks and attesting on time. Rewards are paid in the network's native token.

This steady yield incentivizes honest, reliable participation.

Slashing

Slashing is the penalty for malicious behavior, such as proposing two conflicting blocks. The protocol destroys part of the offender's stake.

Slashing makes attacks financially painful — you literally lose money for cheating.

If validator double-signs:
    burn part of stake
    eject validator from set

Economic Security

PoS replaces PoW's energy cost with economic cost. To attack the chain, you must acquire a huge stake — and a successful attack would crash the very token you staked.

This makes attacking self-defeating.

Energy Efficiency

Because validators do not race to solve puzzles, PoS uses dramatically less energy than PoW — Ethereum's consumption dropped over 99% after The Merge.

This efficiency is PoS's headline advantage.

Putting It Together

Proof of Stake secures the chain with capital at risk instead of energy. Validators stake funds, propose and attest to blocks, earn rewards, and risk slashing for misbehavior.

Quick Check

Test your Proof of Stake knowledge.

Recap: Proof of Stake

You learned that:

  • PoS ties block creation to staked capital, not computation
  • Validators propose and attest to blocks
  • Staking provides collateral; rewards pay honest behavior
  • Slashing punishes misbehavior
  • PoS is far more energy efficient than PoW

Next: other consensus mechanisms.

Domande Frequenti

La lezione «Proof of Stake» è gratuita?

Sì — il testo completo di «Proof of Stake» è gratuito qui sul web. Per esercitarvi in modo interattivo (un editor di codice integrato e un tutor IA 24/7) e sbloccare il resto del corso Web3 & DApp Development Fundamentals, passa a CoddyKit PRO. Il corso Web3 & DApp Development Fundamentals include 4 lezioni in totale.

Cosa imparerò in «Proof of Stake»?

Validatori e staking Eserciti Web3 & DApp Development Fundamentals con codice pratico che esegui direttamente nel browser, e un tutor IA 24/7 risponde alle tue domande mentre lavori sulla lezione.

Ho bisogno di esperienza per iniziare Web3 & DApp Development Fundamentals?

Non è richiesta alcuna esperienza precedente. Web3 & DApp Development Fundamentals su CoddyKit è strutturato per principianti e studenti avanzati, quindi puoi iniziare da qui o dall'inizio e procedere al tuo ritmo. Questa è la lezione 2 di 4.

Quanto tempo richiede la lezione «Proof of Stake»?

La maggior parte delle lezioni CoddyKit richiede circa 5–10 minuti. Ogni lezione è breve e interattiva, quindi fai progressi costanti e riprendi esattamente da dove hai lasciato su web e app.

Posso scrivere ed eseguire codice in questa lezione Web3 & DApp Development Fundamentals?

Sì. Ogni lezione Web3 & DApp Development Fundamentals include un editor di codice integrato, quindi scrivi ed esegui codice reale direttamente nel tuo browser e ricevi feedback istantaneo dall'IA — nessuna configurazione locale necessaria.

Tutte le lezioni di questo corso

  1. Proof of Work
  2. Proof of Stake
  3. Altri meccanismi
  4. Finalità e fork
← Torna a Web3 & DApp Development Fundamentals