DEFINITION of 'Target Hash'

A target hash is a number that a hashed block header must be less than or equal to in order for a new block to be awarded. The target hash is used in determining the difficulty of the input, and can be adjusted in order to ensure that blocks are processed efficiently. 

BREAKING DOWN 'Target Hash'

Cryptocurrencies rely on the use of blockchains which contain the transaction histories, and are “hashed” or encoded into a series of numbers and letters. Hashing involves taking a string of data of any length and running it through an algorithm to produce an output with a fixed length. The output will always be the same length, regardless of how big or small the input is. The use of hashing means that anyone dealing with a blockchain has to remember the hash rather than the input itself. Each block will contain the hash of the previous block header.

Decoding and encoding the blockchain is referred to as mining. Mining involves the use of computers to run hashing algorithms to process the most recent block, with the information needed in mining found in the block's header. The cryptocurrency network sets a target value for this hash – the target hash - and miners try to determine what this value is by testing out all possible values.

The block header contains the block version number, a timestamp, the hash used in the previous block, the hash of the Merkle Root, the nonce, and the target hash. The block is generated by taking the hash of the block contents, adding a random string of numbers (the nonce), and hashing the block again. If the hash meets the requirement of the target, then the block is added to the blockchain. Cycling through solutions in order to guess the nonce is referred to as proof of work, and the miner who is able to find the value is awarded the block and paid in cryptocurrency.

The target hash for Bitcoin is a 256-bit number, and can be found in the block’s header. Mining a block requires the miner to produce a value (a nonce) that, after being hashed, is less than or equal to one used in the most recent block accepted by the Bitcoin network. This number is between 0- (the smallest option) and 256-bits (the largest option), but is unlikely to ever be the maximum number. Because the target hash could be a huge number, the miner may have to test a large number of values before being successful. An unsuccessful miner has to wait for the next block, which leads to miners likening the finding of a hash solution to winning a race or the lottery.

The target hash is adjusted periodically. The hash functions used to generate the new target have specific properties designed to make the blockchain (and cryptocurrency) secure. It is deterministic, meaning that it will produce the same result each time the same input is used. It is fast enough so as to not take too long to return a hash for the input. It also makes determining the input very difficult, especially for large numbers, and makes small changes to the input result in a very different hash output.

RELATED TERMS
  1. Nonce

    Nonce is a number added to a hashed block, that, when rehashed, ...
  2. Proof of Work

    Proof of work describes the process that allows the bitcoin network ...
  3. Difficulty (Cryptocurrencies)

    Difficulty is a parameter that bitcoin and other cryptocurrencies ...
  4. Block Header (Cryptocurrency)

    A block header is the unique identity of a particular block on ...
  5. Proof of Capacity (Cryptocurrency)

    Proof of Capacity consensus mechanism uses a mining node’s hard ...
  6. Block Time (Cryptocurrency)

    Block time is the average time for a new block to be generated ...
Related Articles
  1. Tech

    How Bitcoin Works

    Miners, hashes, keys, cold storage, blocks - it's confusing. We can help you understand how bitcoin works.
  2. Tech

    How Does Bitcoin Mining Work?

    Bitcoin mining, explained like you're five.
  3. Trading

    Bitcoin Cash: The New King of Cryptocurrency?

    Investors are wondering if the popularity of Bitcoin Cash poses a serious threat to the Bitcoin throne.
  4. Tech

    How Do You Mine Litecoin?

    This guide will give you a sense of the concepts in litecoin mining, an introduction to the vocabulary and suggestions for further research.
  5. Tech

    What is the Genesis Block in Bitcoin Terms?

    Learn more about the Genesis Block, the original Bitcoin block.
  6. Tech

    Bitcoin Is Dead? Not A Chance

    The price of the digital currency, Bitcoin, fell from around $450 to below $380 late last week following the departure of long-time developer Mike Hearn.
  7. Investing

    H&R Block Stock: Time to Consider Selling?

    The tax prep company's shares are up 33.6% YTD. Is it time to take gains, or do fundamentals support the new valuation?
  8. Tech

    Speed Is Essential for Bitcoin Platforms

    Why does speed especially matter with Bitcoin technology? It's because Bitcoin platforms using blockchain need to meet the needs of users in times of high volatility.
  9. Tech

    How to Choose a Cryptocurrency Mining Pool

    Here are some selection criteria cryptocurrency miners should consider before joining a crypto mining pool.
  10. Tech

    Bitcoin vs. Bitcoin Cash: What's the Difference?

    We break down the difference between Bitcoin and Bitcoin Cash, and what it might mean for the future of cryptocurrencies
RELATED FAQS
  1. What does "squeezing the shorts" mean?

    "Squeezing the shorts" refers to a questionable practice in which a trader takes advantage of a stock that has been short ... Read Answer >>
  2. What's the difference between diminishing marginal returns and returns to scale?

    Understand the main differences between the law of diminishing marginal returns and the concept of returns to scale through ... Read Answer >>
  3. What are some examples of ways that sensitivity analysis can be used?

    Understand the concept of sensitivity analysis and learn about the wide variety of disciplines to which it can be applied. Read Answer >>
Hot Definitions
  1. Quick Ratio

    The quick ratio measures a company’s ability to meet its short-term obligations with its most liquid assets.
  2. Leverage

    Leverage results from using borrowed capital as a source of funding when investing to expand the firm's asset base and generate ...
  3. Financial Risk

    Financial risk is the possibility that shareholders will lose money when investing in a company if its cash flow fails to ...
  4. Enterprise Value (EV)

    Enterprise Value (EV) is a measure of a company's total value, often used as a more comprehensive alternative to equity market ...
  5. Relative Strength Index - RSI

    Relative Strength Indicator (RSI) is a technical momentum indicator that compares the magnitude of recent gains to recent ...
  6. Dividend

    A dividend is a distribution of a portion of a company's earnings, decided by the board of directors, to a class of its shareholders.
Trading Center