How do does solving mathematical problems create bitcoins?

599 views

How do does solving mathematical problems create bitcoins?

In: Technology

6 Answers

Anonymous 0 Comments

None of these explanations are ELI5. Solving math problems makes it hard to get Bitcoins. Because they are hard to get they are valuable. Bitcoin was designed so that math problems create Bitcoin in order to make sure they remain hard to get.

Anonymous 0 Comments

Bitcoins don’t just exist out in the wild for us to find. When the person who invented Bitcoin wrote the paper that laid out the plan for Bitcoin, they needed put a Proof of Work system in place, some sort of barrier so that Bitcoin would actually take work to collect. If you can get them easily, they won’t have any value, and currency needs value if it is to function like a currency. The mathematical problem is a sort of imposed artificial scarcity, limiting the quantity of Bitcoin so that it has value. Solving reliably difficult math problems is a good way to do that.

Anonymous 0 Comments

Bitcoin has a long ledger, describing every transaction for every bitcoin. This ledger is tamper-proof because there is a cryptographic checksum on every block that is always 0 (not exactly true but it’s simpler to explain this way). If the block’s checksum is not 0, it’s been tampered with, and you need to get the good copy from somebody else. Each block depends on the block before, thus a block chain, hence the term.

The way they make the block’s checksum =0 is by adding a little random number to the end of the block, and then seeing if the checksum is 0. This is a computationally expensive process, taking many millions of tries. The first person to find a number that works publishes their block, and everybody moves on to the next block. Since this process is expensive, and the person paid for the electricity to calculate the answer, the person who publishes the block gets paid a small amount of bitcoin. This process, called mining, is the process of being the fastest to find a solution to the checksum(block+number)=0.

Anonymous 0 Comments

As simply as possible:

Bitcoin miners verify the validity of a Bitcoin transaction block by correctly guessing the number that passes through a hash function thus confirming the transaction. The correct number could be any integer between 0 – 4,294,967,296.

Basically your computer just guesses as fast as it can until it hits the right number.

Anonymous 0 Comments

In math, there are problems where verifying the answer is a lot easier than finding it in the first place. For example, if I told you to find the square root of 2, you have to do a lot of calculations to actually figure out the digits. However, if I told you to verify that 1.41421356237… was the square root of 2, you can do some quick math (relatively) and confirm it (lets ignore the whole irrational number thing here).

You can take this further and have problems that are unsolvable one way, but verifiable the other. This is actually easy when you have an algorithm that throws away part of the data each time.

With Bitcoin, there is a Ledger of transactions. In order for everyone to believe the ledger, it has to be regularly signed. The signature the ledger needs depends on the contents of the ledger, but it cannot be calculated directly from the contents, only verified against. Thus, everyone just has to “guess” what the signature is. You generate a random signature, check it, see it it succeeds, and if it doesn’t, you generate another one and check.

Because this requires computing power, the system has an incentive for the people doing the checks. This incentive is adding some amount of bitcoin to their wallets. So they’re not actually “creating” bitcoin. It’s just extra bitcoin being added into circulation as a reward for maintaining the ledger.

Now let’s get into why this sucks. All those people that are trying to guess the ledger signature are using a lot of power to run all their computers. They obviously pay for this power with the bitcoin they mine. Thus, people will keep adding more and more computers into the bitcoin mining pool as long as they make more revenue from successful mining compared to the cost of electricity for mining it. Bitcoin also has a mechanism for adjusting the difficulty of the mining calculations, since the entire point of Bitcoin is that there is too much work for any one person to try and rewrite the entire ledger in a way that suits them. Whenever too many people start mining, it makes Bitcoin that much harder to successfully mine. This means that eventually the large miners may be making less and less profit but require more and more electricity.

The end result is that essentially every bit of cash being added to the bitcoin pool was, more or less, already used to pay for the electricity required to mine the bitcoin. Bitcoin will eventually crash as a result of this, and at the end of it all, nobody will have anything to say for it. The only people who will make out at the end of it are power companies who have sold a ridiculous amount of power to the bitcoin mining operations, as well as the suppliers of raw materials for the power. If it’s done off of coal or gas, there’s a pretty significant CO2 footprint to the mining.

But it gets even worse than that. A lot of the mining happens in areas where power may be partially subsidized by the government. That means that everyone else is paying taxes that are actually helping to partially pay for the power used in mining. The end result is that the citizens are losing out

Anonymous 0 Comments

Bitcoin is based on a consensus algorithm. That means that whether or not something happens with bitcoin depends on a bunch of bitcoin users agreeing that bitcoin transactions are legit. Why does solving mathematical problems create bitcoins? Because that’s the agreed upon method between bitcoin users.

One of the key concepts behind bitcoin, and a lot of cryptography in general, is the idea that some things are hard to compute, but easy to verify. Take this question as an example.

> What two whole numbers, multiplied together, equal 62,299,253?

You can solve that problem, but it’s going to take a bit of time. On the other hand, if I tell you the answer is 7879 * 7907, it is relatively easy to confirm that answer is correct.

Bitcoin is based on these types of problems. If Alice wants to pay Bob one bitcoin for some brownies, Alice publishes this transaction to a pool of pending transactions. A bitcoin miner, Carol, comes along, grabs a bunch of pending transactions out of the pool, and gets to work finalizing these transactions. To finalize these transactions, Carol has to do that number crunching that we hear so much about. Carol is going to repeatedly do a bunch of math with those transactions, and she is looking for a specific result. *This math is one of those problems that is hard to solve, but easy to verify.* As soon as Carol has solved the math problem, she publishes her solution. Her solution is a *block* of transactions. Her block must be connected to the most recent block that exists, forming a chain of blocks. A blockchain (how about that).

OK, so why does Carol do this, and how does Carol “create” bitcoin out of this? Well, in Carol’s block, there are a bunch of transactions, like “Alice pays Bob 1 bitcoin.” Because Carol is going to the trouble of processing transactions, Carol gets to put her own transaction in the block that says, “Carol gets 1 bitcoin for free.” That’s how bitcoin is “created”.

Now, once Carol does the math and correctly calculates a block, she publishes it to the blockchain. Now everyone else can see Carol’s block. It took Carol a long time to calculate the block, but anyone looking at the finished block can easily verify it’s correct. Did Carol do all the math correctly? Is Carol’s block connected to the most recent valid block? Is Carol trying to do something shady and grant herself 2 bitcoin instead of the 1 she’s allowed to have? All the other bitcoin users can check her block, and if her block looks correct, they will build on top of her block. If her block does not look correct, they will pretend her block doesn’t exist and build on the last valid block they can find.

So, how does bitcoin get created? One person just says, “I give myself a bitcoin,” and if everyone else approves, then it’s truth.