Proof of Work (PoW)
Proof of Work — це механізм консенсусу, який вимагає від учасників мережі (майнерів) розв'язувати обчислювально складні головоломки для валідації транзакцій та додавання нових блоків до блокчейну.
Proof of Work (PoW) вперше представлений у білій книзі Bitcoin 2008 року Сатоші Накамото, хоча концепція походить від Hashcash (1997). Він вирішує проблему подвійних витрат без довіреної третьої сторони.
Як працює PoW:
1. Майнери збирають очікувані транзакції в блок
2. Вони повторно хешують заголовок блоку з різними nonce
3. Мета: знайти хеш нижче цільової складності
4. Перший майнер з дійсним хешем транслює блок
5. Інші вузли перевіряють і приймають блок
6. Переможний майнер отримує нові монети + комісії
Модель безпеки:
- Для атаки потрібно >50% загальної потужності майнінгу (атака 51%)
- Чим більше майнерів, тим безпечніша мережа
Критика:
- Високе енергоспоживання
- Централізація майнінгу
- Гонка озброєнь обладнання
Незважаючи на критику, PoW залишається найбільш перевіреним та безпечним механізмом консенсусу.
graph LR
Center["Proof of Work (PoW)"]:::main
Pre_logic["logic"]:::pre --> Center
click Pre_logic "/terms/logic"
Rel_consensus_mechanism["consensus-mechanism"]:::related -.-> Center
click Rel_consensus_mechanism "/terms/consensus-mechanism"
Rel_proof_verification["proof-verification"]:::related -.-> Center
click Rel_proof_verification "/terms/proof-verification"
Rel_proof_of_stake["proof-of-stake"]:::related -.-> Center
click Rel_proof_of_stake "/terms/proof-of-stake"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧠 Перевірка знань
🧒 Простими словами
It's like a giant, difficult Sudoku puzzle that miners race to solve. The first one to solve it gets to add the next page of transactions to the shared digital ledger and gets a reward, but everyone else can easily check their answer.
🤓 Expert Deep Dive
The security of Proof-of-Work is rooted in the computational difficulty and the probabilistic nature of block discovery. The [hash function](/uk/terms/hash-function) used (typically SHA-256 for Bitcoin) provides pre-image resistance, second pre-image resistance, and collision resistance, ensuring that finding a valid nonce is computationally infeasible without performing the hashing work. The difficulty target is dynamically adjusted (e.g., every 2016 blocks in Bitcoin) to maintain a consistent block generation time, regardless of fluctuations in the network's total hash rate.
From a game-theoretic perspective, the Nash equilibrium incentivizes miners to act honestly. The cost of acquiring and operating the necessary hashing hardware to mount a 51% attack is substantial. The expected reward for honest mining (block reward + fees) is generally greater than the expected cost of mining, assuming a rational actor. However, the concentration of mining power in large pools presents a centralization vector.
Potential vulnerabilities include selfish mining strategies, where miners strategically withhold discovered blocks to gain an advantage, and the aforementioned 51% attack. The energy consumption is a significant environmental and economic externality. Alternative PoW variants exist, such as Proof-of-Capacity or Proof-of-Burn, which aim to reduce energy usage while maintaining security properties, though they often introduce different trade-offs regarding hardware requirements or attack vectors.