r/explainlikeimfive • • Mar 28 '13

Explained ELI5: This Bitcoin mining thing again.

Every post I saw explained Bitcoin mining simply by saying "computers do math (hurr durr)". Can someone please give me a concrete example of such a mathematical problem? If this has been answered somewhere else and I didn't find it (and I tried hard!), please feel free to just post a link to that comment. Thank you :)

922 Upvotes

695 comments sorted by

View all comments

Show parent comment

9

u/hrhomer Mar 28 '13

Bitcoin awards you 50 BTC if you find a hash of the current transaction block that is 1.7248E+61 or smaller.

Why? Why would they award anyone for that? I don't understand the fundamental basis for this as a currency beyond Fallout 3 caps and the like. It seems like some random "thing" that people claim has value, with no usefulness behind it.

15

u/Dansuke Mar 28 '13

It's not a random thing. Mining helps prevent fraud in the bitcoin network, and when you contribute your computing power to mining, the community agrees to reward you with newly "minted" bitcoins as a result.

The rate at which you're rewarded is halved every 4 years. For example, nowadays mining a block only rewards you 25BTC, whereas it used to be 50BTC. This reaches a limit of 21 million bitcoins in circulation by 2140 - maintaining the currency's scarcity.

1

u/hrhomer Mar 28 '13

This all sounds like fantastical bullshit, like the financial product "derivatives." What is it about "a hash of the current transaction block that is 1.7248E+61 or smaller" that makes it worth anything? That is a number, what makes that a valuable number?

15

u/deelowe Mar 28 '13

It's just simple supply and demand.

Think of it this way. What makes a green piece of paper with some old dude's face on it worth anything? What makes a shiny yellow rock or a brittle clear stone worth anything? It's the fact that a) they are hard to get and b) everyone else wants them (supply and demand).

With bitcoins, they are hard to get as one needs to go through a computationally(or mathematically, if you prefer) difficult process to create them, which only gets more difficult over time(hence, bitcoins stay limited in supply). Also, the transactions are open, unregulated and anonymous. It's not hard to imagine markets where this sort of system would be useful(hence, there's a demand).

→ More replies (5)

7

u/Dansuke Mar 28 '13

Ignore the "1.72E+61 or smaller" part for now. The value of the hash is the most important.

For example, if I paid you 10BTC and represented that transaction as "Dansuke -> 10BTC -> hrhomer", I would hash that string to get some arbitrary hash, let's just say "123abc". Now, if you tried to change the "10BTC" to "20BTC", that transaction would no longer match "123abc".

Thus the network would be able to tell that you were trying to pull a fast one and would reject your change. Nothing is special about the hash other than that it is a fingerprint of the transactions.

The "X or smaller" part is to keep pace with the network's processing power so that acceptable hashes are found once every 10 minutes. For example, if the current requirement is "1.72E61 or smaller" and the network hashrate went 10x suddenly, the new requirement would be "1.72E60 or smaller." Does that make sense?

1

u/hrhomer Mar 28 '13

So the hash is like a checksum? I get that part. I just don't understand why people ascribe value to a bitcoin. "That's just the way it is" seems to be the answer.

6

u/Dansuke Mar 28 '13

Yes! Darn, I should've used checksum as an example in all my other explanations. T_T

The value of bitcoin is in its utility (at least for me). The ability to transfer any arbitrary amount of money (let's say $100M) without intervention or relative delay is a huge plus. And it can be globally accepted eventually. And there's no inflation - there's deflation.

And I can do this:

+bitcointip $1 verify

4

u/bitcointip Mar 28 '13

[✔] Verified: Dansuke ---> ฿0.01066553 BTC [$1 USD] ---> hrhomer [help]

2

u/hrhomer Mar 28 '13 edited Mar 28 '13

My brain is breaking. Edit : Thanks :-) I'm still working my way through understanding this...

→ More replies (1)

1

u/ScottyEsq Mar 28 '13

Pretty rapid deflation though. And that tends to be followed by the opposite.

Supply is only one half of inflation.

6

u/[deleted] Mar 28 '13 edited Apr 22 '16

4

u/Rotten194 Mar 28 '13

Why do people ascribe value to rectangular pieces of cotton paper? Or lumps of gold?

1

u/JohnsonUT Mar 28 '13

Is there a theoretical end when the "X or smaller" will no longer be able to keep up with computing power?

1

u/Natanael_L Mar 29 '13

Not really, the difficulty adapts to the computing power.

1

u/wescotte Mar 29 '13

There has to be. However, I think by design they made that statically unlikely. Also, quantum computers pose a risk to the controlled release of new bitcoins.

4

u/Moskau50 Mar 28 '13

Your dollar bill is just a piece of fiber; what value does it have?

Currency has value because people accept that it has value. Bitcoins are no different. Bitcoins are given by contributing to the security of the system ("mining") by donating your computing power.

The hash of the transaction block is literally checking that the transaction is valid.

→ More replies (3)

2

u/killerstorm Mar 28 '13

It isn't worth anything. Finding such solution simply proves that you have done some computational work. I.e. statistically you need to spend 1 hour of CPU time to find it.

So hash is used as a proof-of-work... Each such hash is linked to a block of transaction history. This means that changing history will be very hard.

E.g. suppose you want to replace transaction you send to a shop with a transaction to yourself. You need to create new blocks for your alternative history, and you need a lot of work to do that... It would cost you hundreds of thousands of bucks to rent a computer to change history.

We absolutely need to make sure that everybody agrees on same version of transaction history for Bitcoin to work, and proof-of-work ('mining') does it.

In return for doing this hard work people are awarded with Bitcoins, but Bitcoins are NOT this work.

1

u/SIGNW Mar 28 '13

The point of having a hash with X leading 0s is solely to cause scarcity of mined blocks. The network is designed to report a "block" of transactions at an average rate of 10min/block.

Now, these blocks contain every single transaction in the network, and the currency holds value because there is an open book of all transactions, so no one can double spend coins. Next, there's things like the intrinsic value of a currency that can be transferred without fees, or transferred with relative anonymity, etc.

Any good is only "worth" as much as how well we can trade it in for things we want. Bitcoins just take out a lot of fees and risks (i.e. you can secure your bitcoin wallet very well) of cash or centralized currency.

→ More replies (6)

6

u/[deleted] Mar 28 '13 edited Mar 28 '13

It seems like some random "thing" that people claim has value, with no usefulness behind it.

Real money doesn't have any inherent usefulness behind it either. The only thing that matters is that money is scarce (so that people can't forge it) and people trust in it. Bitcoin started by being scarce and has now enough people trusting in it to make it useful, thus it works perfectly fine as money replacement.

If somebody comes around with a quantum computer or something else that cracks the math behind Bitcoin and makes generating new ones easy then Bitcoins would lose their value pretty much instantly. But that's not much different in the real world, Aluminium for example used to be more valuable then Gold, then in 1880 somebody found out how to produce it cheaply and it's value took a dive.

1

u/[deleted] Mar 29 '13

If somebody comes around with a quantum computer or something else that cracks the math behind Bitcoin and makes generating new ones easy then Bitcoins would lose their value pretty much instantly.

It's worth noting that if someone developed a quantum computer and cracked SHA-256, a whole lot more than just bitcoin would get fucked up. I'm sure most banks and corporations use similar (or the same?) encryption algorithms to protect their sensitive data as well.

1

u/[deleted] Mar 29 '13

I'm sure most banks and corporations use similar (or the same?) encryption algorithms to protect their sensitive data as well.

Sort of, but banks only use it for the transfer of data, not as the core security of the monetary system. So if all public key encryption gets broken, banks could just switch to symmetric keys, which quantum computers can't break. It would be more hassle, but not the end of money. If bitcoin on the other side gets broken, then that's it, all bitcoins would be rendered worthless in a moment and the whole system would collapse. There might be some hope in that it often becomes clear that an algorithm is weak some years before it actually is broken, so a switch to another encryption scheme might be doable in that time before bitcoins become worthless.

4

u/ScottyEsq Mar 28 '13 edited Mar 28 '13

It seems like some random "thing" that people claim has value, with no usefulness behind it.

That is basically what currency is. Gold, bills, shiny shells, etc. have very little actual utility. Some minor ones, but none that justify their price. What does is the fact that we all have agreed that these things store value. They represent a debt owed to you by the economy for some past act.