2014년 1월 24일 금요일

How to produce the different block hashes for each other in bitcoin


Most of block header will be the same for all users.

There might be some minor variation in the timestamps.

The nonce will usually be different, but it increases in a strictly linear way.

"Nonce" starts at 0 and is incremented for each hash.

Whenever Nonce overflows (which it does frequently),

the extraNonce portion of the generation transaction is incremented,

which changes the Merkle root.

Given block header, people generate the exact same sequence of hashes

as each other and the fastest CPU would almost always win.

However, it is (nearly) impossible for two people to have the same Merkle root

because the first transaction in your block is a generation "sent"

to one of your unique Bitcoin addresses.

Thus, your block is different from everyone else's blocks.



https://en.bitcoin.it/wiki/Block_hashing_algorithm

댓글 없음:

댓글 쓰기