Author

Topic: Total amount of hashes (Read 75 times)

legendary
Activity: 3458
Merit: 6231
Crypto Swap Exchange
January 18, 2023, 08:54:14 PM
#9
Probability and statistics are your friend.

What we can NEVER know, is how many miners spent how much time hashing away never finding a hash that solved a block. Can't even reasonably guess ...

We can't know the actual number but we can come up with a reasonable estimate. The chainwork value is a good estimate and a standard deviation value tells us how good that estimate is.

... I could have 1PH sitting here mining to a private solo pool for a year and never found a bock so nobody outside of me would know it existed. And if it DID find a block you would never know if I had a massive farm or 1 USB stick and just got really really lucky.

The chainwork estimate and standard deviation values account for those possibilities.

The next step would have to be what a 'reasonable estimate' is for the hashpower that is out there that we don't know about.
I really think it's a lot more then people think OR can be proven. But, I [wait for it] can't prove it.

We know about the big pools, we know about the small pools, we know about the occasional unknown block that pops up.

Most people think that the number of people solo mining to pools they setup themselves is small as in dozens at most. I think it's way higher then that. But we never see them because the "paranoid tinfoil hat brigade" that does not trust mining pools and thinks they can do better themselves because all the pools are out to get you are a lot more common then we see here.

But, we will never see them get a block or even know they exist because their crap setups could never find a block even with all the hash in the world. But they are doing it themselves because they know better. You see these people pop up in the hardware and pool board now and then.

In terms of BTC itself they really do not matter, but and I guess we will have to disagree here, saying that you can use stats to find them is not a realistic thing because they are hashing to find a block but they never will and cannot and there is no way to even know they exist.

I can take you to a data center in NY where someone is paying probably close to $1k a month to run a bunch of S19 that mine to his super special custom coded pool that is going to get a block real soon now.......

-Dave
legendary
Activity: 4270
Merit: 3161
January 18, 2023, 05:31:01 PM
#8
Probability and statistics are your friend.

What we can NEVER know, is how many miners spent how much time hashing away never finding a hash that solved a block. Can't even reasonably guess ...

We can't know the actual number but we can come up with a reasonable estimate. The chainwork value is a good estimate and a standard deviation value tells us how good that estimate is.

... I could have 1PH sitting here mining to a private solo pool for a year and never found a bock so nobody outside of me would know it existed. And if it DID find a block you would never know if I had a massive farm or 1 USB stick and just got really really lucky.

The chainwork estimate and standard deviation values account for those possibilities.
hero member
Activity: 789
Merit: 1909
January 18, 2023, 03:35:48 PM
#7
Quote
I could have 1PH sitting here mining to a private solo pool for a year and never found a bock so nobody outside of me would know it existed. And if it DID find a block you would never know if I had a massive farm or 1 USB stick and just got really really lucky.
Of course, you don't know with mathematical certainty, but when it comes to 1 PH, it is 10^15 hashes. For such huge numbers, mathematical probability is very close to reality. So, based on chainwork, you know that it is very unlikely that there are million solo miners with 1 PH each, because it would be 1000 EH, so some of them would find at least some blocks (and they would collectively have more power than the whole network).

Also, SHA-256 is not a pure random hash function, based on ideal conditions. It is pseudorandom. You can test it, and you will discover, that when you calculate a lot of hashes, then doing it in a brute force way will give you results, that are close to pure luck. And of course, it is possible to find some faster way than brute force, but then we would need a new hash function, rehashing the chain, and things like that.

So, even if it is impossible to reach 100% accurate results, it is possible to estimate. And that estimation should be sufficient for everything we need. Because you don't need to know, how many physical particles are in a ton of sand. You know that it has 1000 kg, for example with 1 kg accuracy, and you don't need the exact result in the smallest physical unit.
legendary
Activity: 3458
Merit: 6231
Crypto Swap Exchange
January 18, 2023, 02:12:46 PM
#6
So you have to multiply this number by the number of pools, as they also calculated hashed, but that work was lost as someone found the nonce first

This is wrong in so many ways, I can't even

I think I get what bitmover was trying to say.
There are 2 answers to the question, depending on how you look at the question.

1 answer, which you can get a reasonably close guess to is how much work of SHA-256 hashes has gone into the blockchain that we can calculate. That you can get a reasonably close answer to.

What we can NEVER know, is how many miners spent how much time hashing away never finding a hash that solved a block. Can't even reasonably guess since we don't know what we don't know. i.e. I could have 1PH sitting here mining to a private solo pool for a year and never found a bock so nobody outside of me would know it existed. And if it DID find a block you would never know if I had a massive farm or 1 USB stick and just got really really lucky.

-Dave
hero member
Activity: 789
Merit: 1909
January 18, 2023, 01:49:51 PM
#5
Quote
OFfcourse, it'll take a lot of grunt work... You'll have to find the difficulty for every batch of 2016 blocks, then calculate the number of hashes to find one block (and multiply by 2016), then do this for every group of blocks per retarget period.
We have "chainwork" for that. Just check the current chainwork, and estimate it based on that. You don't have to sum all difficulties from all blocks, it is already done by each full node, just to check which chain is the strongest one.
legendary
Activity: 972
Merit: 1076
January 18, 2023, 09:39:01 AM
#4
So you have to multiply this number by the number of pools, as they also calculated hashed, but that work was lost as someone found the nonce first

This is wrong in so many ways, I can't even
legendary
Activity: 2212
Merit: 5622
Non-custodial BTC Wallet
January 18, 2023, 07:29:15 AM
#3
theoretically, you could make an estimation by using the formula:
Quote
The expected number of hashes we need to calculate to find a block with difficulty D is therefore

D * 2**256 / (0xffff * 2**208)
That could be found on page https://en.bitcoin.it/wiki/Difficulty

There's even an example written on this page Smiley

OFfcourse, it'll take a lot of grunt work... You'll have to find the difficulty for every batch of 2016 blocks, then calculate the number of hashes to find one block (and multiply by 2016), then do this for every group of blocks per retarget period.

It is also important to note that there is competition between mining pools.

So you have to multiply this number by the number of pools, as they also calculated hashed, but that work was lost as someone found the nonce first
legendary
Activity: 3346
Merit: 4911
https://merel.mobi => buy facemasks with BTC/LTC
January 18, 2023, 06:01:04 AM
#2
theoretically, you could make an estimation by using the formula:
Quote
The expected number of hashes we need to calculate to find a block with difficulty D is therefore

D * 2**256 / (0xffff * 2**208)
That could be found on page https://en.bitcoin.it/wiki/Difficulty

There's even an example written on this page Smiley

OFfcourse, it'll take a lot of grunt work... You'll have to find the difficulty for every batch of 2016 blocks, then calculate the number of hashes to find one block (and multiply by 2016), then do this for every group of blocks per retarget period.
jr. member
Activity: 34
Merit: 35
January 18, 2023, 05:59:18 AM
#1
Is it possible to somehow calculate how many SHA-256 hashes have all the miners calculated for the entire history of Bitcoin?

Last numbers I have seen from Pieter Wuille are from 2020:
With block 632874, around a day ago, the expected cumulative work in the Bitcoin blockchain surpassed 2^92 double-SHA256 hashes (with a standard deviation around 1.4*2^83).
Jump to: