Questions tagged [hash]

A hash is the output of a hash function, a function which is a mathematically reproducible but irreversible process that takes in an arbitrary length input and produces a fixed length output. The same input will always result in the same output. Hashing is central to Bitcoin mining as well as the generation of Bitcoin addresses.

A hash is the output of a hash function, a function which is a mathematically reproducible but irreversible process that takes in an arbitrary length input and produces a fixed length output. The same input will always result in the same output. Hash functions often create output which is random looking, and secure hash functions cannot be reversed, i.e. the input cannot be known just by having the hash, and two inputs are unlikely to result in the same output.

Hashing is central to Bitcoin mining as part of the Proof of Work. In Bitcoin, the hash function used for the PoW is SHA256 double. Hashes are also used in Bitcoin addresses and as unique identifiers for blocks and transactions.

515 questions
9
votes
9 answers

What is a good analogy (which a layperson would understand) for the process of Bitcoin mining?

I will be explaining Bitcoin to a non-technical group and I am hoping somebody can provide me with a very basic visual analogy of the crypto-currency mining process. My half-baked idea, was to somehow describe the mining process as partaking in a…
user10385
  • 91
  • 1
  • 2
5
votes
1 answer

What are hash functions used for in bitcoin?

What are hash functions used for in bitcoin? I am looking for a comprehensive list.
BitcoinFanatic
  • 311
  • 1
  • 9
3
votes
2 answers

How can we derive all work ever done on the system from the lowest hash ever found?

If not mathematically (I imagine the proof might be quite rigorous), could you please provide an intuitive explanation for why the lowest hash ever found tells approximates the total amount of work ever done on the system? Source:…
Bob
  • 31
  • 3
2
votes
1 answer

How can I find a hash with leading zeros

I came across a similar question that was asked but the answer didn't seem quite complete. Coding is completely foreign to me and I have spent some time trying to solve with no success. I am trying to increase the difficulty by getting 8 leading…
magner73
  • 21
  • 2
2
votes
1 answer

Whats the public key required for in a transaction?

In figure 1 of the original paper by satoshi, why include the public key of the next owner in the hash?
TMOTTM
  • 123
  • 3
2
votes
1 answer

bitcoin address to Hash 160 public key : not consistantly reversible?

When I use blockchain.info tools or bitcointoolkit.info tools to convert an address, such as 1MCNpVGDY7BGjJyWZL5FJZiaVkQEiuxy8H to a hash 160 public key : I get dd894dfc0f473c44cc983b5dd462bc1b393f7498 However, if i convert…
1
vote
2 answers

Required number of bits in nonce

Is there a formal proof that with N bits to iterate in the nonce of the block, a hash satisfying proof of work will be ever found? How large that N (number of bits in the nonce) should be to satisfy proof of work in 10 years, 100 years?
alex
  • 113
  • 3
0
votes
1 answer

Double SHA256 giving me an incorrect value with this code VB.net

I'm trying to build a bitcoin miner. I have generated the message successfully, but I can't get the double SHA256 correctly. The value I'm getting is incorrect. What is wrong with this code? Private Sub Button9_Click(sender As Object, e As…
0
votes
1 answer

If i have 42 tera hashes of mining power, how long will it take me to mine a block solo, and if i join a mining pool, how much bitcoin will I get?

If i have 42 tera hashes of mining power, how long will it take me to mine a block solo, and if i join a mining pool, how much bitcoin will I get? I am intrested in buying 4 Bitmain Antminer T9+.
Stuff Man
  • 1
  • 1
0
votes
1 answer

How are the requirements of the hash for mining a new block determined?

How are the requirements of the hash for mining a new block determined? Is it published or a message is sent?
0
votes
1 answer

Can't we change the block data instead of a nonce?

In the process of solving a hash puzzle, isn't it possible to change the transaction data instead of changing a nonce?
sflow
  • 199
  • 1
  • 5
0
votes
1 answer

retrieving an original data from a hash: is it reliable?

Normally, one of the purposes of hashing a string (such as a transaction) is summarizing the data to save the size because of the space limitation. If this proposition is true, now assume we need to read the original data and so we need to extract…
Questioner
  • 1,151
  • 8
  • 23
0
votes
1 answer

HASH160 to address - What am I doing wrong?

I am running this code and nothing happens. I am trying to hash160 a script with OP_HASH160 {scriptHash} OP_EQUAL and get a P2SH address as output but not sure this is the right script to achieve this. // OP_HASH160 {scriptHash} OP_EQUAL var…
Robert
  • 351
  • 3
  • 15
0
votes
2 answers

What is #Hash in bitcoin from a layman's perspective?

I am currently reading through the paper on bitcoin and being from a non IT background, I am unable to understand the use/function of hash
0
votes
1 answer

Want to verify previous block hash and prove of work

I want to verify several random blocks and check if there was prove of work really found. I need it for some reasearch reasons. I have downloaded the blocks historical info and there are only hashes with number of zeroes in the block headers in the…
Yuri
  • 41
  • 3
1
2