إثبات الحصة
المدققون والتخزين
إثبات الحصة درس مجاني في Web3 & DApp Development Fundamentals على CoddyKit. هذا هو الدرس 2 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Web3 & DApp Development Fundamentals، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Web3 & DApp Development Fundamentals 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
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 blockAttestations
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 setEconomic 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.
الأسئلة الشائعة
هل درس «إثبات الحصة» مجاني؟
نعم — نص درس «إثبات الحصة» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Web3 & DApp Development Fundamentals، انتقل إلى CoddyKit PRO. تتضمن دورة Web3 & DApp Development Fundamentals 4 دروس في المجموع.
ماذا ستتعلم في «إثبات الحصة»؟
المدققون والتخزين تتمرن على Web3 & DApp Development Fundamentals مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Web3 & DApp Development Fundamentals؟
لا تُشترط خبرة سابقة. Web3 & DApp Development Fundamentals على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 2 من أصل 4.
كم من الوقت يستغرق درس «إثبات الحصة»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Web3 & DApp Development Fundamentals هذا؟
نعم. كل درس في Web3 & DApp Development Fundamentals يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- إثبات العمل
- إثبات الحصة
- آليات أخرى
- الحسم والتفرعات