whoever solves the problem first gets to create the next block.
Miners have to expend
resources (computing hardware and electricity) to solve the puzzle by finding the right
hash, a kind of unique fingerprint for a text or a data file. For each block they find,
miners receive bitcoin as a reward. The puzzle is mathematically set up to make it
impossible to find a shortcut to solve it. That’s why, when the rest of the network sees
the answer, everyone trusts that a lot of work went into producing it. Also, this puzzle
solving is continuous “to the tune of 500,000 trillion hashes per second,” according to
Dino Mark Angaritis. Miners are “looking for a hash that meets the target. It is
statistically bound to occur every ten minutes. It’s a Poisson process, so that
sometimes it takes one
minute and sometimes one hour, but on average, it’s ten
minutes.” Angaritis explained how it works: “Miners gather all the pending
transactions that they find on the network and run the data through a cryptographic
digest function called the secure hash algorithm (SHA-256), which outputs a 32-byte
hash value. If the hash value is below a certain target (set by the network and adjusted
every 2,016 blocks), then the miner has found the answer to the puzzle and has
‘solved’ the block. Unfortunately for the miner, finding the right hash value is very
difficult. If the hash value is wrong, the miner adjusts the input
data slightly and tries
again. Each attempt results in an
entirely different hash value. Miners have to try
many times to find the right answer. As of November 2015, the number of hash
attempts is on average 350 million trillion. That’s a lot of work!”
8
You may hear about other consensus mechanisms. The first version of the
Ethereum blockchain—Frontier—also uses proof of work, but the developers of
Ethereum 1.1 expect to replace it with a
proof of stake mechanism. Proof of stake
requires miners to invest in and hang on to some store of value (i.e., the native token
of the blockchain such as Peercoin, NXT, etc.). They needn’t spend energy to vote.
Other blockchains, such as Ripple and Stellar, rely on social networks for consensus
and may recommend that new participants (i.e., new nodes) generate a
unique node
list of at least one hundred nodes they can trust in voting on the state of affairs. This
type of proof is biased: newcomers need social intelligence and reputation to
Do'stlaringiz bilan baham: