- Mastering Ethereum
- Merunas Grincalaitis
- 194字
- 2021-06-24 15:01:02
Proof-of-work
This is a method to guarantee that the result of a task was hard to achieve. Why do we want to make processing tasks difficult? To reward those that are best at completing it. In a blockchain, it costs processing power, which is just hardware, energy, and time, to process transactions made by individuals using the network. It is used to generate blocks in a simple process:
- The miner proposes a new block that contains a hash number made of the header of the most recent block and the nonce counter.
- Then, the miner compares the hash to the target value which is determined by the mining difficulty.
- If the hash is of the target difficulty, the user gets rewarded with the solution by getting ETH. If not, the nonce gets incremented until a hash is generated with the desired solution.
Since the miner will be competing with many others, there must be a system to make sure that the block times are consistent, because we want to keep generating blocks with the same periodicity even when new nodes join the mining network. To guarantee similar block times, the mining difficulty was created.
推薦閱讀
- 數(shù)學不簡單:從《最強大腦》發(fā)現(xiàn)思維樂趣
- 尖叫的數(shù)學:令人驚嘆的數(shù)學之美
- 妙趣橫生博弈論:事業(yè)與人生的成功之道(白金版)
- 數(shù)學也可以這樣學:自然、空間和時間里的數(shù)學
- 數(shù)學建模33講:數(shù)學與繽紛的世界
- 紅發(fā)克拉拉的數(shù)學奇想
- 數(shù)理邏輯
- 數(shù)字、代數(shù)和圖象(全彩版)
- Blockchain By Example
- 特殊函數(shù)概論習題解答
- 現(xiàn)代啟發(fā)式優(yōu)化方法及其應(yīng)用
- 基于ANSYS的信號和電源完整性設(shè)計與分析(第2版)
- 數(shù)學故事總動員
- 牛津通識讀本:數(shù)學(中文版)
- 非線性回歸分析與SAS智能化實現(xiàn)