【区块链整理】三、以太坊挖矿算法 ETHASH

资讯 2024-07-10 阅读:81 评论:0
以太坊挖矿算法 Ethash 又名 Dashimoto (Dagger-Hashimoto),是 Hashimoto 算法结合 Dagger 算法产生的变种算法。Ethash 算法大致流程如下:The Ethash algorithm,...
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

以太坊挖矿算法 Ethash 又名 Dashimoto (Dagger-Hashimoto),是 Hashimoto 算法结合 Dagger 算法产生的变种算法。Ethash 算法大致流程如下:

The Ethash algorithm, also known as Dagger-Hashimoto, is a variable algorithm from the Hashimoto algorithm in conjunction with the Dagger algorithm. The Ethash algorithm has the following general flow:

1. 生成种子

根据区块块头信息计算出一个种子。

A torrent is calculated on the basis of block information.

2. 伪随机数据集

根据种子生成一个大小为 16M 的伪随机数据集,其大小每 30000 个区块进行一次更新。轻节点进行存储。其中值得说明的是种子计算生成第一个数,其后的每个数都是前一个数的哈希值。

Generates a pseudo-random data set of 16M sizes based on the feed, the size of which is updated for every 300,000 blocks. Light nodes are stored. It is worth noting that the seed calculates the first number of the generation, and each of the subsequent numbers is the Hashi value of the previous number.

3. DAG数据集

根据伪随机数据集生成大小 1G 的大规模数据集。该数据集中每项元素通过伪随机数据集中少量的几项计算得到。如果给出伪随机数据集合指定的几项,很快可以算出 DAG 中指定的元素,轻节点用此进行验证。

Generates a large-scale data set of 1G size from a pseudo-random data set. This data sets each element through a few calculations of a small amount of pseudo-random data. If you give a few specified elements of a pseudo-random data set, you can quickly calculate the element specified in the DAG, which is used by the light node for validation.

4. 挖矿

通过 header 及 nonce 计算出一个初始的哈希值映射到初始位置A,然后读取A位置元素和A的相邻后一个位置A'的元素,再通过(A和A')计算出位置(B和B'),依次类推,迭代64次后,一共读取出128个数,最后计算这128个数的哈希值与目标值target比较,若满足 target,则挖矿成功;否则重新尝试 nonce。

Calculates an initial Hashi value map to the initial position A through the header and nonce, then reads the A-position element and the A-side of the next position A', then calculates the position (B and B') by sub-specify, 64 times, a total of 128 readings, and then calculates the 128 Hashi value compared to the target value Target, or if the target element is satisfied, the mine is successfully dug; otherwise, try again noce.

 

最后一项则为以太坊引入的“难度炸弹”,挖矿难度随着每 10000 个区块的生成而翻倍。验证影响以太坊出块速度。

The last one is the “hard bomb” introduced by Taiwan, which doubles the difficulty of mining every 10000 blocks.

 

美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
文字格式和图片示例

注册有任何问题请添加 微信:MVIP619 拉你进入群

弹窗与图片大小一致 文章转载注明

分享:

扫一扫在手机阅读、分享本文

发表评论
平台列表
美化布局示例

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
热门文章
  • 2017年比特币行情走势

    2017年比特币行情走势
    当年比特币行情分析。【小蚂蚁和以太坊】20 17年,比特币持续走强,价格上涨,创下新的历史新高。今年,比特币作为全球范围内的投资对象受到关注和讨论。【比特币信息网络】20 17上半年,比特币价格突破1000美元关口,随后持续上涨,引起了投资者的关注。投资者对比特币的未来充满期待,并希望获得巨大的利益。ZajXXGV0【虚拟货币下跌】随着比特币价格的不断上涨,市场上出现了一场争论。一些人认为比特币泡沫即将破裂,警告投资者谨慎参与。另一方面,其他人确信比特币的价格可能会上涨。oS...
  • 正在阅读:MetaMask-以太坊钱包(浏览器插件)使用教程MetaMask-以太坊钱包(浏览器插件)使用教程

    正在阅读:MetaMask-以太坊钱包(浏览器插件)使用教程MetaMask-以太坊钱包(浏览器插件)使用教程
    简介:MetaMask 是一款浏览器插件钱包,不需下载安装客户端,只需添加至浏览器扩展程序即可使用,非常方便。它是很多支持 ETH 参投的 ICO 项目推荐使用的钱包之一。Introduction: MetaMask is a wallet of ˂a href=http://dl.pconline.com.cn/sort/104.html" target="_blank"crass="cmsLink" browser, not to download and i...
  • Coinbase:财富100强企业过去一年的Web3采用率增长39%

    Coinbase:财富100强企业过去一年的Web3采用率增长39%
    随着比特币、以太坊等主流加密货币在web2世界的认可度变得越来越高,许多web2传统公司也积极拥抱web3,加速采用和开发区块链产品的速度和应用层面。With ˂a style= "max-width": 90%" href=https://m.php.cn/zt/21172.html" target="_blank" bitcoin, ˂a style="color:#f60; text-decoration: unde...
  • 美国可以使用什么加密货币交易所_前10名比特币交易平台名单

    美国可以使用什么加密货币交易所_前10名比特币交易平台名单
    美国可以使用什么加密货币交易所?What is an encrypted currency exchange that the United States can use?随着加密货币的普及,加密货币交易所也越来越多。对于美国的加密货币交易者而言,选择一个可靠、安全且易于使用的交易所是十分重要的事情。那么,美国可以使用哪些加密货币交易所呢?以下是前10名比特币交易平台名单:The choice of a reliable, secure, and easy-to-use...
  • 2015年宝马3系二手车价格多少钱

    2015年宝马3系二手车价格多少钱
    爱你一生不变心6558 2022-04-28 13:20:03 二手车能不能买主要看车况,如果车况好就可以考虑,车况不好价格再低也别考虑,像2015款宝马3系目前行情价是在18.32万这样,如果低...
标签列表