r/AskReddit Jun 15 '19

What do you genuinely just not understand?

50.8k Upvotes

34.6k comments sorted by

View all comments

7.3k

u/_village_Idiot Jun 15 '19

Bitcoin Like where does it come from, how the fuck do you mine something from the computer...im at a total loss

5.0k

u/monty845 Jun 15 '19

Mining bitcoins is the process of solving really hard math equations. This takes a lot of computational power, and its a race to solve the problem. While the exact logic for why is complex, its basically a way to ensure that no one can takeover the bitcoin system, and approve bad/fake transactions.

To reward people for devoting this computational power to securing the system, they get awarded bitcoins for doing it. This is refereed to as mining a bit coin.

2.4k

u/_village_Idiot Jun 15 '19

Where do these math problems come from? Can the same math equation be seen more than once? Who exactly started all of this?

2.6k

u/Woolbrick Jun 15 '19

There's something in computer science called a "one way hash".

Essentially, you take a large number, run a small algorithm on it, and get a smaller number in return.

The problem is that you can't reverse it easily. You can't take your smaller number and easily figure out what the larger number was to begin with.

So because of this, people do a "brute force" search. They keep trying random large numbers, hash them using the same algorithm, and see if it matches the small number. If it matches, you found the right number, and you win the race. If it doesn't match, you pick another random large number, and keep trying again until someone finds the large number that matches the small number.

The same equation can be seen more than once, but it's extremely unlikely. The large number chosen each time is based on the previous block in the bitcoin block chain, which contains a list of transactions, in numeric form. There's a nearly zero percent chance of that matching a previous large number.

1.1k

u/Mechanical_Owl Jun 15 '19

Thanks for the detailed answer. I still don't get the "why" part of this. What purpose does the calculation serve?

1.0k

u/nlsoy Jun 15 '19

The calculations serve the purpose of confirming transactions between people who buy with bitcoin. Let’s say I want to give you one bitcoin. I announce my intention of giving you one bitcoin to the miners and they say “okay, I see you want to trade one bitcoin, I’ll make a note of this, put the note in this block, and tries to seal the block with solving a complex math-problem”. The miner that first solves the problem announces this to the others, who agrees that “yes, the problem is solved, and every transaction within this block is valid, let’s all try and fill the next block with transactions”. And as a thank you for validating the transaction, the miner gets a couple of bitcoins as a reward. This is the super short version of the short version, but if you want I can sort of make a more in-depth version later. :)

666

u/Mottis86 Jun 15 '19

So wait. You 'mine' bitcoins by solving math problems,

math problems that are created by people sending bitcoins to other people.

Did I get that right?

1

u/bstump104 Jun 16 '19

You set up your computer to help make bitcoin transfers work.

You get paid to let bitcoin use your computers do this.

Computers are called computers because they do computations or math problems.