DEFINITION of 'Hash'

A hash is a function that converts an input of letters and numbers into an encrypted output of a fixed length. A hash is created using an algorithm, and is essential to blockchain management in cryptocurrency.

BREAKING DOWN 'Hash'

The backbone of a cryptocurrency is its blockchain, which is a global ledger formed by linking together individual blocks of transaction data. The blockchain only contains validated transactions, which prevents fraudulent transactions and double spending of the currency. The validation process relies on data being encrypted using algorithmic hashing. The resulting encrypted value is a series of numbers and letters that does not resemble the original data, and is called a hash. Cryptocurrency mining involves working with this hash.

Hashing requires processing the data from a block through a mathematical function, which results in an output of a fixed length. Using a fixed length output increases security, since anyone trying to decrypt the hash won’t be able to tell how long or short the input is simply by looking at the length of the output. For example, hashing the word “hello” will produce an output that is the same length as the hash for “I am going to the store”. The function used to generate the hash is deterministic, meaning that it will produce the same result each time the same input is used; can generate a hashed input efficiently; makes determining the input difficult (leading to mining); and makes small changes to the input result in a very different hash.

Processing the hash functions needed to encrypt new blocks requires substantial computer processing power, which can be costly. In order to entice individuals and companies, referred to as miners, to invest in the required technology, cryptocurrency networks reward them with both new cryptocurrency tokens and a transaction fee. Miners are compensated only if they are the first to create a hash that meets the requirements set forth in the target hash.

Solving the hash is essentially solving a complex mathematical problem, and starts with the data available in the block header. Each block header contains a version number, a timestamp, the hash used in the previous block, the hash of the Merkle Root, the nonce, and the target hash. The miner focuses on the nonce, a string of numbers. This number is appended to the hashed contents of the previous block, which is then itself hashed. If this new hash is less than or equal to the target hash, then it is accepted as the solution, the miner is given the reward, and the block is added to the blockchain.

Solving the hash requires the miner to determine which string to use as the nonce, which itself requires a significant amount of trial-and-error. This is because the nonce is a random string. It is highly unlikely that a miner will successfully come up with the correct nonce on the first try, meaning that the miner may potentially test a large number of nonce options before getting it right. The greater the difficulty - a measure of how hard it is to create a hash that meets the requirement of the target hash- the longer it is likely to take to generate a solution. 

RELATED TERMS
  1. Target Hash

    A target hash is a number that a hashed block header must be ...
  2. Merkle Root (Cryptocurrency)

    A Merkle root contains information about every single transaction ...
  3. Proof of Capacity (Cryptocurrency)

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

    Block time is the average time for a new block to be generated ...
  5. Application-Specific Integrated ...

    An application-specific integrated circuit (ASIC) is a piece ...
  6. Cloud Mining

    Cloud mining offers a mechanism to mine a cryptocurrency such ...
Related Articles
  1. Tech

    What is a Distributed Ledger?

    Blockchain technology has come a long way from the obscure corners of the web it was once confined to. But what is it? And what about nonces, hashes and ledgers?
  2. Tech

    How Bitcoin Works

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

    How Does Bitcoin Mining Work?

    Bitcoin mining, explained like you're five.
  4. Tech

    Blockchain Could Make You—Not Equifax—the Owner of Your Data

    All hype aside, blockchain technology is really good at one thing: taking out the middlemen. Leaky data brokers' days may be numbered.
  5. 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.
  6. Tech

    How to Choose a Cryptocurrency Mining Pool

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

    Intel Applies for Patent on Crypto Mining Chip

    Intel has filed for a patent to speed up bitcoin mining by reducing energy used in the process.
  8. Tech

    How Health Care Is Moving Toward Blockchain

    Could cryptocurrency technology help to untangle the beleaguered industry?
  9. Tech

    Bitcoin Cash Broke $1000: Where Will It Go Next?

    The surge in Bitcoin Cash’s mining profitability and high trade volume propelled its price to near $1,000 over the weekend.
  10. Tech

    The Most Popular Bitcoin Mining Software

    Success at mining bitcoins depends on the combination of time, knowledge, computer hardware and the complementary software.
RELATED FAQS
  1. How does a block chain prevent double-spending of Bitcoins?

    Find out how double-spending is prevented in the Bitcoin server and how transactions are posted and verified on the Bitcoin ... Read Answer >>
  2. What criteria classify a company as a junior gold miner?

    Learn about junior gold miners, companies that exclusively mine for gold. These firms typically rely on venture capital and ... Read Answer >>
  3. How is sensitivity analysis used?

    Sensitivity analysis is used to identify how much variations in the input values for a given variable will impact the results ... Read Answer >>
  4. How Do Fixed and Variable Costs Affect the Marginal Cost of Production?

    Learn about the marginal cost of production and how it is affected by changes in fixed and variable costs. Read Answer >>
  5. Do production costs include all fixed and variable costs?

    Learn more about fixed and variable costs and how they affect production costs. Understanding how to graph these costs can ... Read Answer >>
  6. How are fixed costs treated in cost accounting?

    Learn how fixed costs and variable costs are used in cost accounting to help a company's management with budgeting and controlling ... Read Answer >>
Trading Center