From the course: Building an Ethereum Blockchain App: 1 Introduction to Blockchain

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Finding the nonce

Finding the nonce

- You may be noticing what seems to be a little bit of a problem. If creating a hash or calculating a hash is so easy, then how can you use a hash to make spoofing hard? Because if anybody can calculate hashes, then wouldn't spoofing a block and creating a spoofed hash be easy? Well, yeah, it would be. However, what if we introduce another layer? In other words, we introduce a new value and we tack that along or onto the actual block data such that we have certain requirements as to what the output looks like. What we need to do is introduce something new. So in blockchain, what we do is we add a new number and we add that to the data. So that with this new number plus the block data, we create a new hash value. But then, we're going to add rules onto that new hash value such that it has to meet certain criteria and we call that the complexity requirement. So what does the complexity requirement really mean? Well, in…

Contents