0Pricing
Web3 & DApp Development Fundamentals · Leçon

Preuve d’enjeu

Validateurs et staking

Preuve d’enjeu est une leçon Web3 & DApp Development Fundamentals gratuite sur CoddyKit. Ceci est la leçon 2 sur 4. Tu peux lire la leçon complète ci-dessous gratuitement — puis la pratiquer en direct dans le navigateur avec un éditeur de code intégré et un tuteur IA 24/7. Elle fait partie du parcours d'apprentissage Web3 & DApp Development Fundamentals, et ta progression se synchronise sur le web et l'application CoddyKit. Le cours Web3 & DApp Development Fundamentals comprend 4 leçons au total.

Certaines parties de cette leçon n'ont pas encore été traduites et s'affichent en anglais.

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.

Questions Fréquemment Posées

La leçon « Preuve d’enjeu » est-elle gratuite ?

Oui — le texte complet de « Preuve d’enjeu » est gratuit à lire ici sur le web. Pour la pratiquer de manière interactive (un éditeur de code intégré et un tuteur IA 24/7) et déverrouiller le reste du cours Web3 & DApp Development Fundamentals, passe à CoddyKit PRO. Le cours Web3 & DApp Development Fundamentals comprend 4 leçons au total.

Qu'est-ce que j'apprendrai dans « Preuve d’enjeu » ?

Validateurs et staking Tu pratiques Web3 & DApp Development Fundamentals avec du code pratique que tu exécutes directement dans le navigateur, et un tuteur IA 24/7 répond à tes questions au fur et à mesure que tu avances dans la leçon.

Dois-je avoir de l'expérience pour commencer Web3 & DApp Development Fundamentals ?

Aucune expérience préalable n'est requise. Web3 & DApp Development Fundamentals sur CoddyKit est structuré pour les débutants jusqu'aux apprenants avancés, donc tu peux commencer ici ou depuis le début et avancer à ton rythme. Ceci est la leçon 2 sur 4.

Combien de temps prend la leçon « Preuve d’enjeu » ?

La plupart des leçons CoddyKit prennent environ 5–10 minutes. Chacune est courte et interactive, tu progresses régulièrement et tu repiques exactement où tu t'es arrêté sur le web et l'app.

Peux-tu écrire et exécuter du code dans cette leçon Web3 & DApp Development Fundamentals ?

Oui. Chaque leçon Web3 & DApp Development Fundamentals inclut un éditeur de code intégré, tu écris et exécutes du vrai code directement dans ton navigateur et tu reçois des retours IA instantanés — aucune configuration locale requise.

Toutes les leçons de ce cours

  1. Preuve de travail
  2. Preuve d’enjeu
  3. Autres mécanismes
  4. Finalité et forks
← Retour à Web3 & DApp Development Fundamentals