
Who Runs a Blockchain?
من يدير سلسلة الكتل؟
No company owns Bitcoin or Ethereum, yet their ledgers keep growing correctly. This lesson explains how miners and validators keep the books honest, and why that costs something.
لا تملك أي شركة البيتكوين أو إيثريوم، ومع ذلك يكبر دفترهما بشكل سليم. يشرح هذا الدرس كيف يحافظ المعدّنون والمدققون على صدق الدفتر ولماذا لهذا تكلفة.
Lesson Content
محتوى الدرس
Read the lesson in English or Persian.
اقرأ الدرس بالفارسية أو الإنجليزية.
A bank has an owner, a manager and a phone number. A public blockchain has none of these. Thousands of computers around the world hold the same ledger, and nobody is in charge of it.
So who decides which transactions go in next? And why would anyone cheat or not cheat?
01. The problem to solve
Any ledger needs one rule: everyone must agree on the next page. If two people could add two different next pages, the money could be spent twice.
A bank solves this by being the single referee. A blockchain solves it with a method, called a consensus mechanism, where many strangers agree without trusting each other.
02. Proof of work: mining
Bitcoin uses proof of work. Miners collect pending transactions into a block and then try to find a number that, combined with the block's data and hashed, produces a result below a target. As learnmeabitcoin explains, this means hashing the block header, using double SHA-256, over and over until a result falls below the target.
There is no shortcut except trying. The first miner to succeed shares the block, and the others check it quickly.
The network aims for a new block about every 10 minutes. Every 2,016 blocks, roughly two weeks, the difficulty adjusts so the pace stays steady however many miners join or leave.
03. What miners are paid
The winning miner collects a reward for the block, called the coinbase, plus the fees from its transactions. The reward cannot be spent until it is 100 blocks old, which protects against a block being replaced.
The cost is the point. Miners spend real electricity and equipment, so cheating has to be worth more than the cost of doing it honestly.
| Proof of work (Bitcoin) | Proof of stake (Ethereum) | |
|---|---|---|
| Who proposes blocks | Miners | Validators |
| What is at stake | Electricity and equipment | A deposit (32 ETH to run one alone) |
| Penalty for cheating | Wasted work | Slashing of the deposit |
| Energy use | High | About 99.99% lower after the Merge (estimate) |
04. Proof of stake: validators
Ethereum changed to proof of stake. Instead of spending energy, validators put money at risk. To run a validator on its own you deposit 32 ETH, and pools exist for people with less.
If a validator behaves dishonestly, part or all of its deposit can be destroyed. This penalty is called slashing. According to ethereum.org, the initial penalty starts at 1/4096 of the effective balance, capped at 0.5 ETH, and then the validator is removed.
05. How much energy changed
The change came on 15 September 2022, the day of the Merge. The Cambridge Centre for Alternative Finance estimated that Ethereum's electricity use fell by about 99.99%.
06. Nodes: the people who check
Miners and validators propose blocks, but any computer running the software, a node, can check the rules. A block that breaks the rules is rejected even if it was expensive to make.
07. Can the majority cheat?
In proof of work, someone controlling most of the mining power could rewrite recent history. This is called a 51% attack. It needs enormous resources, and the target gets weaker the smaller the network.
Both systems answer the same question: make cheating more costly than honesty.
What to take from this
A blockchain needs a way for strangers to agree on the next page.
Proof of work: miners spend energy hashing until a result falls below the target.
Proof of stake: validators put money at risk and can be slashed.
Nodes check the rules, even without making blocks.
Both aim to make cheating cost more than honesty.
للبنك مالك ومدير ورقم هاتف. أما البلوكتشين العام فلا شيء من هذا. آلاف الحواسيب في العالم تحفظ دفترًا واحدًا ولا أحد مسؤول عنه.
فمن يقرر أي المعاملات تدخل تاليًا؟ ولماذا يغشّ أحد أو لا يغشّ؟
01. المشكلة التي يجب حلها
كل دفتر يحتاج إلى قاعدة: على الجميع أن يتفقوا على الصفحة التالية. فإذا استطاع اثنان أن يضيفا صفحتين تاليتين مختلفتين، يمكن إنفاق المال مرتين.
البنك يحل هذا بأن يكون حكمًا واحدًا. والبلوكتشين يحله بطريقة تسمى آلية الإجماع، يتفق فيها غرباء كثيرون دون أن يثق بعضهم ببعض.
02. إثبات العمل: التعدين
يستخدم البيتكوين إثبات العمل. يجمع المعدّنون المعاملات المنتظرة في كتلة ثم يبحثون عن رقم يُجزَّأ (hash) مع بيانات الكتلة بحيث تكون النتيجة دون هدف. وبحسب شرح learnmeabitcoin يعني هذا تجزئة ترويسة الكتلة بـ double SHA-256 مرارًا وتكرارًا حتى تقع النتيجة تحت الهدف.
ليس هناك اختصار سوى المحاولة. أول معدّن ينجح ينشر الكتلة ويفحصها الآخرون بسرعة.
هدف الشبكة كتلة جديدة كل نحو 10 دقائق. وكل 2,016 كتلة، أي نحو أسبوعين، تُضبط الصعوبة لتبقى السرعة ثابتة مهما جاء المعدّنون أو ذهبوا.
03. ماذا يحصل عليه المعدّنون
يحصل المعدّن الفائز على مكافأة الكتلة، المسماة «كوين بيس» (coinbase)، إضافةً إلى رسوم معاملاتها. ولا يمكن إنفاق هذه المكافأة إلا بعد 100 كتلة، وهذا يمنع استبدال الكتلة.
والتكلفة هي النقطة نفسها. المعدّنون ينفقون كهرباء ومعدات حقيقية، فيجب أن تكون قيمة الغش أكبر من تكلفة العمل بأمانة.
| إثبات العمل (البيتكوين) | إثبات الحصة (إيثريوم) | |
|---|---|---|
| من يقترح الكتلة | المعدّنون | المدققون |
| ما المعرّض للخطر | الكهرباء والمعدات | وديعة (32 إيثر للتشغيل المستقل) |
| عقوبة الغش | عمل ضائع | اقتطاع الوديعة (Slashing) |
| استهلاك الطاقة | مرتفع | أقل بنحو 99.99% بعد الدمج (تقدير) |
04. إثبات الحصة: المدققون
انتقلت إيثريوم إلى إثبات الحصة. فبدلًا من إنفاق الطاقة يعرّض المدققون المال للخطر. ولتشغيل مدقق مستقل تودع 32 إيثر، وللذين يملكون أقل هناك «مجمّعات».
فإن تصرّف مدقق بشكل خاطئ فقد يُتلَف جزء من الوديعة أو كلها. وتسمى هذه العقوبة «الاقتطاع» (slashing). وبحسب ethereum.org تبدأ العقوبة الأولية من 1/4096 من الرصيد الفعلي، وسقفها 0.5 إيثر، ثم يُستبعد المدقق.
05. كم تغيّر استهلاك الطاقة
حدث هذا التغيير في 15 سبتمبر 2022، يوم «الدمج» (Merge). وقدّر مركز كامبريدج للتمويل البديل أن استهلاك إيثريوم للكهرباء انخفض نحو 99.99%.
06. العُقد: من يتحققون
يقترح المعدّنون والمدققون الكتل، لكن أي حاسوب يشغّل البرنامج، أي عقدة (node)، يمكنه فحص القواعد. والكتلة التي تخرق القاعدة تُرفض، حتى لو كان صنعها مكلفًا.
07. هل تستطيع الأغلبية الغش؟
في إثبات العمل، من يملك معظم قدرة التعدين يستطيع إعادة كتابة التاريخ الأخير. ويسمى هذا «هجوم 51%». يحتاج إلى موارد هائلة، وكلما صغرت الشبكة كانت أضعف هدفًا.
كلا النظامين يجيب عن سؤال واحد: اجعل الغش أغلى من الأمانة.
ماذا نستنتج
يحتاج البلوكتشين إلى طريقة يتفق بها الغرباء على الصفحة التالية.
إثبات العمل: المعدّنون ينفقون الطاقة ويجرون التجزئة حتى تقع النتيجة دون الهدف.
إثبات الحصة: المدققون يعرّضون المال للخطر وقد يُقتطع منهم.
العُقد تفحص القواعد، حتى دون صنع الكتل.
كلاهما يريد جعل الغش أغلى من الأمانة.
Two lessons that connect
درسان مرتبطان
Lesson 28 shows what Ethereum runs on top of this: programs that execute by themselves. Lesson 30 explains the schedule that governs how Bitcoin's miners are paid.
يبيّن الدرس 28 ماذا تشغّل إيثريوم على هذا الأساس: برامج تعمل بنفسها. ويشرح الدرس 30 برنامجًا يحدد مكافأة معدّني البيتكوين.
Key Concepts
المفاهيم الأساسية
- Consensus mechanism
- Proof of work
- Mining and difficulty
- Block reward
- Proof of stake
- Validator and slashing
- Node
- 51% attack
- آلية الإجماع
- إثبات العمل
- التعدين والصعوبة
- مكافأة الكتلة
- إثبات الحصة
- المدقق والاقتطاع
- العقدة
- هجوم 51%
Learning Objectives
أهداف التعلّم
- Explain why a blockchain needs a consensus method.
- Describe proof of work in simple words.
- Describe proof of stake and slashing.
- Say what a node does.
- Explain what a 51% attack is.
- اشرح لماذا يحتاج البلوكتشين إلى آلية إجماع.
- صِف إثبات العمل ببساطة.
- صِف إثبات الحصة والاقتطاع.
- قل ماذا تفعل العقدة.
- اشرح ما هجوم 51%.
Quiz
اختبار قصير
Check what stayed with you. The answer is under each question.
انظر ماذا علق في ذهنك. الإجابة تحت كل سؤال.
Question 1
السؤال 1
Roughly how often does the Bitcoin network aim to produce a block?
كل كم تقريبًا تستهدف شبكة البيتكوين كتلة؟
A. About every 10 minutes
أ. نحو كل 10 دقائق
B. Every second
ب. كل ثانية
C. Once a day
ج. مرة في اليوم
Correct answer: A
الإجابة الصحيحة: أ
Question 2
السؤال 2
How often does Bitcoin's difficulty adjust?
كل كم تُضبط صعوبة البيتكوين؟
A. Every 2,016 blocks, about two weeks
أ. كل 2,016 كتلة، نحو أسبوعين
B. Every block
ب. كل كتلة
C. Never
ج. أبدًا
Correct answer: A
الإجابة الصحيحة: أ
Question 3
السؤال 3
What is slashing?
ما الاقتطاع (Slashing)؟
A. Destroying part or all of a dishonest validator's deposit
أ. إتلاف جزء من وديعة المدقق المخطئ أو كلها
B. A fee discount
ب. خصم على الرسوم
C. A new coin
ج. عملة جديدة
Correct answer: A
الإجابة الصحيحة: أ
Question 4
السؤال 4
How much ETH is needed to run a validator on your own?
كم إيثر يلزم لتشغيل مدقق مستقل؟
A. 32 ETH
أ. 32 إيثر
B. 1 ETH
ب. 1 إيثر
C. 1,000 ETH
ج. 1,000 إيثر
Correct answer: A
الإجابة الصحيحة: أ
Question 5
السؤال 5
What do both consensus methods aim for?
ما هدف طريقتي الإجماع كلتيهما؟
A. Making cheating cost more than honesty
أ. جعل الغش أغلى من الأمانة
B. Hiding the ledger
ب. إخفاء الدفتر
C. Choosing one company as boss
ج. اختيار شركة رئيسةً
Correct answer: A
الإجابة الصحيحة: أ
Sources
المصادر
- learnmeabitcoin: mining, block time, difficulty retarget every 2,016 blocks, coinbase maturity, 51% attack
- ethereum.org: proof of stake, the 32 ETH deposit, staking pools and slashing
- Cambridge Centre for Alternative Finance: Ethereum's electricity use after the Merge (15 September 2022)
The 99.99% figure is an estimate by the Cambridge Centre for Alternative Finance. The block interval and difficulty period are design targets, not guarantees for any single block. General explanation, not investment advice.
رقم 99.99% تقدير مركز كامبريدج للتمويل البديل. وفاصل الكتل وفترة الصعوبة أهداف تصميم لا ضمان لكل كتلة. شرح عام لا نصيحة استثمارية.
نتابع معًاFollow along
New lessons are announced first on Ditoman's channels.
تُعرَض الدروس الجديدة أولًا على قنوات ديتومان.