内容简介:以太坊整个父块头的Keccak 256位哈希(包括其nonce和mixhash)。指向父块的指针,从而有效地构建块链。在Genesis块的情况下,仅在这种情况下,它为0。可选免费,但最多32字节长的空间,以保护智能的东西为ethernity。 :)
以太坊 genesis.json
配置文件中各参数解释:
mixhash
A 256-bit hash which proves, combined with the nonce, that a sufficient amount of computation has been carried out on this block: the Proof-of-Work (PoW). The combination of nonce and mixhash must satisfy a mathematical condition described in the Yellowpaper, 4.3.4. Block Header Validity, (44). It allows to verify that the Block has really been cryptographically mined, thus, from this aspect, is valid.
一个256位的哈希证明,与nonce相结合,已经对该块进行了足够的计算:工作量证明(PoW)。 nonce和mixhash的组合必须满足黄皮书4.3.4中描述的数学条件。块头有效性,(44)。它允许验证块确实已经加密地挖掘,因此,从这方面来说,它是有效的。
nonce
A 64-bit hash, which proves, combined with the mix-hash, that a sufficient amount of computation has been carried out on this block: the Proof-of-Work (PoW). The combination of nonce and mixhash must satisfy a mathematical condition described in the Yellowpaper, 4.3.4. Block Header Validity, (44), and allows to verify that the Block has really been cryptographically mined and thus, from this aspect, is valid. The nonce is the cryptographically secure mining proof-of-work that proves beyond reasonable doubt that a particular amount of computation has been expended in the determination of this token value. (Yellowpager, 11.5. Mining Proof-of-Work).
证明64位散列与混合散列相结合,在该块上进行了足够的计算:工作量证明(PoW)。 nonce和mixhash的组合必须满足黄皮书4.3.4中描述的数学条件。块头有效性,(44),并允许验证块确实已经加密地挖掘,因此,从这方面来说,是有效的。 nonce是加密安全的挖掘工作证明,证明在确定该令牌值时已经花费了特定量的计算。 (Yellowpager,11.5。采矿工作证明)。
difficulty
A scalar value corresponding to the difficulty level applied during the nonce discovering of this block. It defines the mining Target, which can be calculated from the previous block’s difficulty level and the timestamp. The higher the difficulty, the statistically more calculations a Miner must perform to discover a valid block. This value is used to control the Block generation time of a Blockchain, keeping the Block generation frequency within a target range. On the test network, we keep this value low to avoid waiting during tests, since the discovery of a valid Block is required to execute a transaction on the Blockchain.
标量值,对应于在该块的随机数发现期间应用的难度级别。它定义了挖掘目标,可以根据前一个块的难度级别和时间戳来计算。难度越高,Miner必须执行的统计更多计算才能发现有效块。此值用于控制区块链的块生成时间,将块生成频率保持在目标范围内。在测试网络上,我们将此值保持为低以避免在测试期间等待,因为在区块链上执行事务需要发现有效的块。
alloc
Allows defining a list of pre-filled wallets. That’s an Ethereum specific functionality to handle the “Ether pre-sale” period.
允许定义预先填充的钱包列表。这是以太坊特定功能,可以处理“以太网预售”时期。
coinbase
The 160-bit address to which all rewards (in Ether) collected from the successful mining of this block have been transferred. They are a sum of the mining reward itself and the Contract transaction execution refunds. Often named “beneficiary” in the specifications, sometimes “etherbase” in the online documentation. This can be anything in the Genesis Block since the value is set by the setting of the Miner when a new Block is created.
从该块的成功挖掘中收集的所有奖励(以太币)的160位地址已被转移。它们是采矿奖励本身和合同交易执行退款的总和。通常在规范中命名为“受益人”,有时在在线文档中称为“etherbase”。这可以是Genesis Block中的任何内容,因为在创建新Block时,Miner的设置会设置该值。
timestamp
A scalar value equal to the reasonable output of Unix time() function at this block inception. This mechanism enforces a homeostasis in terms of the time between blocks. A smaller period between the last two blocks results in an increase in the difficulty level and thus additional computation required to find the next valid block. If the period is too large, the difficulty, and expected time to the next block, is reduced. The timestamp also allows verifying the order of block within the chain (Yellowpaper, 4.3.4. (43)).
标量值等于此块开始时 Unix time()
函数的合理输出。该机制在块之间的时间方面强制实施稳态。最后两个块之间的较小周期导致难度级别的增加,从而导致找到下一个有效块所需的额外计算。如果周期太大,则减少了难度和到下一个块的预期时间。时间戳还允许验证链内的块顺序(黄皮书,4.3.4。(43))。
parentHash
The Keccak 256-bit hash of the entire parent block header (including its nonce and mixhash). Pointer to the parent block, thus effectively building the chain of blocks. In the case of the Genesis block, and only in this case, it’s 0.
整个父块头的Keccak 256位哈希(包括其nonce和mixhash)。指向父块的指针,从而有效地构建块链。在Genesis块的情况下,仅在这种情况下,它为0。
extraData
An optional free, but max. 32-byte long space to conserve smart things for ethernity. :)
可选免费,但最多32字节长的空间,以保护智能的东西为ethernity。 :)
gasLimit
A scalar value equal to the current chain-wide limit of Gas expenditure per block. High in our case to avoid being limited by this threshold during tests. Note: this does not indicate that we should not pay attention to the Gas consumption of our Contracts.
标量值等于每块汽油支出的当前链范围限制。我们的情况需要设置得很高,以避免在测试期间受到此阈值的限制。注意:这并不表示我们不应该关注合同的汽油消耗量。
转载请注明出处:
http://zgljl2012.com/yi-tai-fang-genesis-jsonpei-zhi-wen-jian-zhong-ge-can-shu-jie-shi/
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:- 你自我介绍说很懂 Spring 配置类,那你怎么解释这个现象?
- 从朴素解释出发解释leveldb的设计
- 干货 | 解释 ReGenesis 构想
- JavaScript 预解释分析
- jQuery 安全模型解释
- 可解释的机器学习
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
算法统治世界——智能经济的隐形秩序
徐恪、李沁 / 清华大学出版社有限公司 / 2017-11-15 / CNY 69.00
今天,互联网已经彻底改变了经济系统的运行方式,经济增长的决定性要素已经从物质资料的增加转变成为信息的增长。但是,只有信息的快速增长是不够的,这些增长的信息还必须是“有序”的。只有“有序”才能使信息具有价值,能够为人所用,能够指导我们实现商业的新路径。这种包含在信息里的隐形秩序才是今天信息世界的真正价值所在。经济系统的运行确实是纷繁复杂的,但因为算法的存在,这一切变得有律可循,算法也成为新经济系统里......一起来看看 《算法统治世界——智能经济的隐形秩序》 这本书的介绍吧!
html转js在线工具
html转js在线工具
正则表达式在线测试
正则表达式在线测试