Professional Documents
Culture Documents
KEY TAKEAWAYS
Cryptocurrency difficulty is a measure of how difficult it is to mine a block
in a blockchain for a particular cryptocurrency.
A high cryptocurrency difficulty means it takes additional computing
power to verify transactions entered on a blockchain.
The higher the difficulty needed to create a block improves a
cryptocurrency network's security since attackers would need enormous
resources to take control.
Random Hashes
A hash is an alphanumeric code that's used to represent words or data. Miners take
a batch of transaction data and run it through a hash algorithm, a one-way
function that—given a particular set of data—will always produce the same output,
but whose output cannot be reversed to show the original data. Hashing
algorithms are used to create these random hash codes. Before new data can be
added to a blockchain, miners must compete to produce a hash that's lower or
equal to a numeric value called a target hash.
Miners accomplish the hashing process by changing a single value, called a nonce
—or a number used once—and each time the nonce is changed, a new hash is
created with its own set of numbers. There is no way of predicting what a hash will
be and since each set of data has only one output for a given hash function, miners
must repeat the process of adding a new nonce to the data until they meet the
hash requirement.
Cryptocurrency Difficulty
The requirement a hash must meet corresponds to the difficulty. A valid hash must
be below a certain target value set automatically (and periodically adjusted) by the
cryptocurrency's protocol. The lower the target value, the more repetitions of the
hash function a miner must go through in order to get an acceptable result—in
other words, the higher the difficulty. A miner can, in theory, get lucky and obtain a
valid hash for a given block on the first try. However, over time, higher difficulty
means that miners must plug through more nonces per block on average.
Since each hash is created randomly, it can take millions of guesses or hashes
before the target hash requirement is met and new cryptocurrency coins are
minted to the successful miner. Only then are the transactions added to a new
block within the blockchain. In a way, the hashing process is similar to a lottery
system. As a result, new coins are issued through this mining process.
FAST FACT
The higher the hash rate, the more difficult it is for a fraudster to gain
control of the blockchain since more hashing power is needed. In
other words, the higher the difficulty, the more secure the network.
When Satoshi Nakamoto mined the first block, there was only one machine on the
network—likely a simple laptop or desktop. Today there are a number of
sprawling, warehouse-sized ASIC farms. ASICs are machines designed specifically
to plow through hash functions as fast as possible.
In order to ensure that the network produces a new block at a steady average rate,
the software is set to automatically adjust the target hash up or down, which
results in lower or higher difficulty, respectively. When Nakamoto mined the
genesis block, bitcoin's difficulty was one.
Network Security
The overall hash rate provides insight into a cryptocurrency network's security
since fraudsters or bad actors would need to overcome the total hash power of the
network to take control in a malicious attack. Specially designed computers are
used to perform hashing functions, which are able to make trillions of guesses
each second to solve the hashing problem.
The higher the cryptocurrency difficulty, the more guesses or hashes are needed to
reach the target hash requirement. As a result, this process makes it very difficult
and expensive for attackers to gain the majority control—called a 51% majority—of
a blockchain network.
The chart below plots bitcoin's change in difficulty over the years:
ARTICLE SOURCES
Related Terms
Target Hash Definition
A target hash sets the difficulty for cryptocurrency mining using a proof-of-work (PoW)
blockchain system. more
Nonce
In blockchain technology, nonce means a number added to a hashed, or encrypted block,
that, when rehashed, meets the difficulty level restrictions. Blockchain miners aim to solve
the nonce. more
Understanding Hash
A hash is a function that converts an input of letters and numbers into an encrypted output Partner Links
of a fixed length. more
Proof of Activity
Proof of activity is the blockchain consensus algorithm based on a hybrid approach. more
Related Articles
BITCOIN
How Does Bitcoin Mining Work?
BLOCKCHAIN
What Does the Bitcoin Blockchain
Record?
BITCOIN
Bitcoin vs. Bitcoin Cash: What Is the
Difference?
BITCOIN
A History of Bitcoin Hard Forks
BITCOIN
Bitcoin’s 10th Birthday: Was the
Nakamoto White Paper Right?
# A B C D E F G H I J K L M N O P Q R S T U V W X Y Z