简体   繁体   English

在区块链哈希中如何计算印章编号?

[英]How Seal number will be calculated in blockchain hashing?

I'm newbie to blockchain. 我是区块链的新手。 we use hashing for algorithm for sealed numbers.actually sealed number is identified based on required hashoutput. 我们将散列算法用于密封数字算法。实际密封数字是根据所需的哈希输出确定的。 who will identify these required hashoutput initially. 谁将首先识别这些必需的哈希输出。

The "sealing number" referred to here is usually called the nonce. 此处所指的“密封编号”通常称为随机数。 In a proof of work blockchain, nodes on the network generally increment the nonce value until they find one with the desired output. 在工作量证明区块链中,网络上的节点通常会增加随机数值,直到找到具有所需输出的值为止。 The constraint of the output hash is determined by the current chain difficulty. 输出哈希的约束由当前链难度确定。 The chain difficulty essentially is used to define an acceptable output hash, and any hash that passes the constraint is accepted and the block can then be published with the nonce as part of the metadata. 链难度本质上用于定义可接受的输出哈希,并且接受任何通过约束的哈希,然后可以将随机数作为元数据的一部分发布。 In Bitcoin the difficulty changes every 2016 blocks and is adjusted up (harder) or down (easier) depending on the time it has taken to publish the last 2016 blocks, versus the ideal time for 2016 blocks (which is 2016 * 10 mins, or approximately 2 weeks) See this for more info on difficulty and how it is used in bitcoin. 在比特币中,难度每隔2016个区块都会变化一次,并根据发布最后2016个区块所花费的时间(相对于2016年区块的理想时间(即2016 * 10分钟),向上(较难)或向下(较容易)进行调整)大约2周)查看有关的困难更多信息以及它是如何在比特币使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM