3 ms·
The hash function is not arbitrary. Its purpose is to put the global list of transactions in an unambiguous sequence that everyone agrees on, to solve the doubl
by DennisP 14y ago
The hash function is not arbitrary. Its purpose is to put the global list of transactions in an unambiguous sequence that everyone agrees on, to solve the double-spending problem. The inputs to the hash function are transactions.
When a block of transactions is successfully hashed, the miner is awarded new bitcoins, as an incentive to do that necessary work of putting those transactions in order.
I was worried about energy consumption, until I worked out how much the numbers. Starting with an extreme assumption that the bitcoin money supply reaches parity with the dollar by 2021 or so, total power consumption used directly for mining is only a couple gigawatts, about a tenth of a percent of the world's total. I worked that out like this:
First assume the cost of mining equals the value returned. If mining is very profitable, more people will mine and difficulty goes up. If mining loses money, people drop out and difficulty goes down. Overall mining will always tend to be in the neighborhood of breakeven, with just barely enough profit to keep people from dropping out (though that's the equilibrium, and in periods of rapid growth we could be far from equilibrium at times).
Pick a date, figure out how many reward halvings we'll have between now and then, and you get how many coins we award every ten minutes. Multiply by coin price to get value awarded each time. If you assume electricity is half the mining cost, divide that value in half. Then divide by the cost per kWh to get kWh per ten minutes. Multiple by six to get kWh per hour, which is the same as just kilowatts.
And now you know how much power production you need to support the bitcoin economy given your assumptions.
- Dylan16807 14y agoThe hash function is completely arbitrary. An infinitesimal amount of the work that goes into a block is actually processing the transactions. After that it's all proof of work, and you can slot in any proof of work. The problem is that 'useful' calculations aren't suited for extremely fast verification.
- DennisP 14y agoI guess that depends how you define it. The only thing it's doing is taking transactions as input, along with a random number, and hashing them. It's just that the result is required to have a certain number of zeros to be considered valid, so you have to do it over and over again with different random numbers. If you didn't require a difficult computation, anyone could compute a different order of transactions and it would look just as valid. Easier hashing would not accomplish the goal of making a universally-agreed-upon transaction order.
- Dylan16807 14y agoThat's why I said you can slot in any proof of work. Anything slow to do but quick to verify will suffice.
- DennisP 14y agoAny proof of work with bitcoin transactions as the input will suffice. Generating similar hashes of, say, public astronomical data, wouldn't do the job at all.
- Dylan16807 14y agoYou only need to feed in a handful of bytes of bitcoin data. One fake star, or slight perturbations of water molecules in frame 0 of a simulation, would be enough. The problem is that it's difficult to make an algorithm that is both proof of work and actually useful for something.
- fnordfnordfnord 14y agoMany power companies in my area offer free electricity at night to help them shed excess load.
- DennisP 14y agoIf your power company does that, you should definitely get an ASIC miner and mine at night, since power is the dominant cost.
- fnordfnordfnord 14y ago>power is the dominant cost. That's only true for GPU/PC based miners. 66GH/s @ 600Watts, Power is 1-2% of mining cost at current Difficulty / $Exchange / power cost ($0.12). Here is a link to info about the "free nights" plan. https://www.txu.com/residential/promotions/mass/free-nights.aspx https://www.txu.com/residential/promotions/mass/free-nights.... The ASIC based system is much more power efficient than GPU/PC systems. It's even better than FPGA based systems which are (~10-20x) more power efficient than GPU/PC systems. If Bitcoin mining economics are able to sustain ASIC production, it will probably render FPGA based systems uneconomical. Even with just two viable ASIC production runs, I suspect that GPU/PC mining is dead.
- DennisP 14y agoOk I doublechecked and you're right that hardware is the dominant cost with these ASICs. But power accounts for about a quarter of the cost at $0.12/kWh, according to this calculator: http://www.bitcoinx.com/profit/ http://www.bitcoinx.com/profit/ Thanks for the link, that's pretty cool...wish my utility did that.
- fnordfnordfnord 14y agoI think you may not be reading it correctly. I get much better numbers even with more conservative parameters. I more than doubled difficulty, since this is definitely going to change soon due to the effect of the ASIC machines. I need to figure out how to figure out a real number for that. Parameters that I changed: Difficulty 6,968,775 (I don't really think it's likely to double) Hash Rate 50,000 (since 100% uptime is unicorns) Electricity rate (USD/kWh) 0.12 (my current rate) Power consumption (W) 600 Results: Coins per 24h at these conditions 3.6083 BTC (~3.6*20) Power cost per 24h 1.73 USD Revenue per day 71.70 USD (Gross) Revenue Less power costs 69.97 USD (net) It still looks very good to me, am I mistaken? PS, I wish I could take advantage of the free nights, unfortunately, I expect that if this night time load-shedding problem persists for any length of time (a few years), someone will step in and find a way to arb it out, and any big investment in doing that on my part may be lost.