The probability of a collision is found by a standard formula: p = 1 - k! / Nk-1(N-k)!, where k is the number of hashes generated (100x1010x103) and N is the number of possible hashes (2160).
This is a difficult number to calculate, but there is a good approximation: p = 1 - e-k(k-1)/2N
But even that value is difficult to compute because of the precision needed. Here is another approximation p = k2/2N.
So the answer is that the probability of at least one collision is approximately 7x10-19 or 0.00000000000000007%
that's for the collision of a specific address correct?
what if you were to continually generate addresses (and thus privkeys) hoping to collide with another random address which holds funds.
i would imagine as the pool of addresses used by the general population increases, the chances of collisions occurring will increases likewise.
That is the probability of the same address being generated by two different wallets, assuming that all generated addresses are all used. It is not the same as simply generating an address that is currently in use.
The
maximum theoretical probability can be computed. Suppose bitcoins are maximally distributed such that each address holding bitcoins contains only 1 satoshi. There would be 2.1 quadrillion addresses in use (or about 2
51).
The maximum odds of a collision occurring while distributing the 2.1 quadrillion satoshis is approximately (2
51)
2 / (2 * 2
160), or
1 in 259, or 1 in 576460752303423488
That is an incredibly small number.
Once the satoshis are distributed, the odds of generating a single address that is already in use is 2
51 / 2
160, or
1 in 2109, or 1 in 649037107316853453566312041152512
These are the highest possible odds of a collision.
Suppose you are trying to steal satoshis by brute force and you hope to crack one of the 2.1 quadrillion addresses per year. What kind of hash rate do you need? Well, you need to check 2
109 private keys per year (31556926 seconds), or
2.1x1025 checks per second
Note that 2.1x10
25 is about 24 million times the total Bitcoin hash rate (though the two rates are not directly comparable)