Author

Topic: is mining is the process of finding nonce? (Read 215 times)

member
Activity: 126
Merit: 30
March 28, 2023, 11:34:16 PM
#10
is mining is the process of finding nonce?
That is an inaccurate or incomplete definition. Mining is about constructing a new block in the chain and setting the header in a way that this 80-byte construct has a specific hash lower than the target.
In each block header there are 5 fields: version, previous block header hash, merkle root hash, block time, target, nonce. From these fields the previous hash and target are fixed while the rest are variables with version and time having some limits. As I said the miner finds a combination of these that has the desired hash. For example by changing the transactions in the block or their orders the miner can change the merkle root hash hence change the header hash.

Each block contains data about new transactions, as well as a special code called "nonce"
You are getting some terminology wrong, blocks contain transactions not some data about them. Also nonce is a 32-bit integer not a code.

The target (https://bitcoin.stackexchange.com/questions/57184/what-does-the-nbits-value-represent) is not 'fixed' as in constant however it is 'fixed' as in to a specific equation that is based on the block height.

See: https://bitcoin.stackexchange.com/questions/5838/how-is-difficulty-calculated

legendary
Activity: 3472
Merit: 10611
is mining is the process of finding nonce?
That is an inaccurate or incomplete definition. Mining is about constructing a new block in the chain and setting the header in a way that this 80-byte construct has a specific hash lower than the target.
In each block header there are 5 fields: version, previous block header hash, merkle root hash, block time, target, nonce. From these fields the previous hash and target are fixed while the rest are variables with version and time having some limits. As I said the miner finds a combination of these that has the desired hash. For example by changing the transactions in the block or their orders the miner can change the merkle root hash hence change the header hash.

Each block contains data about new transactions, as well as a special code called "nonce"
You are getting some terminology wrong, blocks contain transactions not some data about them. Also nonce is a 32-bit integer not a code.
member
Activity: 126
Merit: 30
Mining (from the English mining - production) is the process of creating new blocks in blockchain systems, such as bitcoin. Each block contains data about new transactions, as well as a special code called "nonce" (one-time number), which is used to confirm the creation of the block.

Miners use specialized computers to perform complex mathematical calculations that help them find the right nonce to create a new block. When a block is created, it is added to the blockchain and becomes part of the overall transaction history.

Thus, mining is not directly related to the search for a nonce, but the nonce is used in the mining process to create new blocks.

Well it technically is directly related to it, its just that a nonce is not the only thing you can change in order to find solutions in Nakomoto PoW (see: https://bitcoin.stackexchange.com/questions/117530/what-restrictions-does-the-version-field-in-the-block-header-have).

Something being changed continuously is the core concept of PoW, competitors need to run through a large variety of potential solutions before arriving at one.

This gives it the quality of being difficult to produce a proof but easy to verify one.

ALSO it is such that there are other operations a miner needs to fulfill in order to successfully produce a block for the network, this is the basis for consensus rules. That being said the difficult part of mining is finding the solution via the nonce or some other manipulate-able part of the block.
member
Activity: 938
Merit: 13
Tontogether | Save Smart & Win Big
Mining (from the English mining - production) is the process of creating new blocks in blockchain systems, such as bitcoin. Each block contains data about new transactions, as well as a special code called "nonce" (one-time number), which is used to confirm the creation of the block.

Miners use specialized computers to perform complex mathematical calculations that help them find the right nonce to create a new block. When a block is created, it is added to the blockchain and becomes part of the overall transaction history.

Thus, mining is not directly related to the search for a nonce, but the nonce is used in the mining process to create new blocks.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
It is the process of finding a block header such that if hashed twice with SHA256 (or as it's called in the community, hash256), it will result in a number below the target. While searching for such block header, the parameters that change are nonce, extraNonce and the timestamp as said above.
legendary
Activity: 2268
Merit: 18748
is it right to say nonce is just a number/ attempt at which the block is successfully mined, ?
To an extent, yes.

After miners have created a candidate block, they double hash the block header and see if the result meets the current target. If not, then they increment the nonce by 1 and try again.

However, the nonce is only a 32 bit number, giving around 4.3 billion possibilities. Big miners can exhaust this in a fraction of a second. And so there are other fields which can also be changed by the miner in order to create more possibilities for them to run through in order to find a successful block. The most commonly used additional fields are the extraNonce part of the coinbase transaction, and the timestamp.
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
is it right to say nonce is just a number/ attempt at which the block is successfully mined, ?
Let me put it like this:

Nonce is what that allows miners to compete in adding new block to the blockchain.
full member
Activity: 448
Merit: 223
It is used by miners for the hash calculation of the block to be mined, which means it is very important in mining a block as every block mined have their own hash. It is a random number that can only be used once. Nonce (number used once). Used to get a valid block hash for their candidate block.

https://learnmeabitcoin.com/technical/nonce
https://learnmeabitcoin.com/beginners/blocks
is it right to say nonce is just a number/ attempt at which the block is successfully mined, ?
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
It is used by miners for the hash calculation of the block to be mined, which means it is very important in mining a block as every block mined have their own hash. It is a random number that can only be used once. Nonce (number used once). Used to get a valid block hash for their (miners) candidate block.

https://learnmeabitcoin.com/technical/nonce
https://learnmeabitcoin.com/beginners/blocks
full member
Activity: 448
Merit: 223

i am getting confused at this , is mining is the process of finding nonce? or something else?
Jump to: