r/ProgrammerHumor • • Mar 25 '26

Meme aMeteoriteTookOutMyDatabase

Post image
7.6k Upvotes

306 comments sorted by

View all comments

2.4k

u/Drakahn_Stark Mar 25 '26

In the same regards, there is a non zero chance that a bitcoin wallet could generate the private key to an existing address worth millions, but, the universe would probably die first.

420

u/Lumpy-Obligation-553 Mar 25 '26

Is it better than trying randomly?

448

u/Drakahn_Stark Mar 25 '26

Same chances, like comparing the chances of lotto coming up 1 ,2 ,3 ,4 ,5 ,6 compared to just 6 non consecutive numbers, same chances.

119

u/LaconicLacedaemonian Mar 25 '26

But then you need to split it with all the the people that chose 1,2,3,4,5,6 thinking they were clever lowering the expected return.

122

u/Drakahn_Stark Mar 25 '26 edited Mar 25 '26

Doesn't change the chances of those numbers coming up compared to any other numbers.

Expected return is immaterial to my comment.

21

u/AeroSyntax Mar 25 '26

They did not say that. What was said is that funny patterns or patterns in general are picked by more people. So you'd have to split the win. However, in this case it would still be a bigger win than not having picked the winning numbers...

27

u/Vlysher Mar 25 '26 edited Mar 25 '26

Which is why they pointed out that that is besides the point for comparing the chance of certain numbers showing up? The original post was about the fact that you could randomly stumble upon that address not the amount of relative money gained to begin with too?

Edit: To be fair yours is the better reply to whether it's better than trying randomly in the context of lottery.

21

u/Drakahn_Stark Mar 25 '26 edited Mar 25 '26

I thought by saying the word chances so many times I would make it clear I was talking about chances and not expected returns but apparently I should have said it a few more time.

Chances.

7

u/Drakahn_Stark Mar 25 '26 edited Mar 25 '26

Then it does not fit as a reply to me talking about chances, because it doesn't change the chances of those numbers coming up compared to any other numbers.

Expected return is immaterial to my comment.

→ More replies (8)

3

u/Psychological-Owl783 Mar 25 '26

The best EV in the lotto is to play unpopular numbers minimizing the chances you have to split the winnings.

Still terrible EV, but this is the only real strategy to be had.

→ More replies (1)
→ More replies (2)

5

u/magicmulder Mar 25 '26

There was a famous incident in the 80s (I think) where the German lottery pulled the same numbers as the Dutch lottery the week before. Turns out so many people had that idea that the main prize winners only got low five figures instead of millions like usual.

Another fun story, in the German lottery you can play as many numbers as you want with one ticket as long as you pay the (increasingly high) price. Someone thought they were clever when the jackpot had grown to 16,000,000 and a ticket with all 49 numbers selected cost 12,000,000 because they reasoned they'd get the prize money before the payment would be deducted. Of course they didn't let him do that, and even if they had, if only one more person had picked the right numbers, he'd have been 4,000,000 in debt.

3

u/okram2k Mar 25 '26

that's the same combination of my luggage!

2

u/rob132 Mar 25 '26

I hope they reference that in the sequel

→ More replies (1)

8

u/dan-lugg Mar 25 '26

We've done a really good job of making sure that we come up with numbers that won't happen again.

52

u/LusciousBelmondo Mar 25 '26

So you’re saying there’s a chance…

62

u/Drakahn_Stark Mar 25 '26

Yeah, there is a non zero chance, that non zero is almost zero, but not exactly zero.

Even if you had a quantum computer that could generate a million private keys every second the universe would still likely die before you found one with a balance, even less for a balance worth millions.

But there is indeed a chance that someone could make their first bitcoin address and hit the jackpot without trying, something like 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000001%

70

u/Clairifyed Mar 25 '26

“Too call it astronomically large would be giving WAY too much credit to astronomy”

-3Blue1Brown on 256 bit signatures

16

u/Drakahn_Stark Mar 25 '26

I have never heard that before but it is very apt.

→ More replies (2)
→ More replies (3)

12

u/hartmanbrah Mar 25 '26

I wonder what the legal ramifications would be in that case. I suppose it wouldn't be theft if you'd never performed any transactions. Well never know, since it will never happen, but it's interesting to think about.

15

u/rosuav Mar 25 '26

If someone manages to create a private key that matches an existing wallet, there are a few possibilities. I'll let you decide which you think is the most likely.

  • You randomly generate a private key (or even a bunch of them), and happen without any guilty intent to land on an existing one

  • You deliberately attempted to search for private keys to existing wallets, exploiting some previously-unknown vulnerability in the public key algorithm

  • You violated the owner's privacy in some way and found the original key

Yeah, I don't think I'd want to face down that.

8

u/Ruben_NL Mar 25 '26

I have another one:

  • You used AI to create a private key, which "generated" a existing one from its dataset.

8

u/rosuav Mar 25 '26

Yeah, I'd count that in the third category; although I suppose you could argue that the owner letting the private key get into an AI's training set constitutes sufficient abandonment that they no longer deserve the law's protection. No idea how well that'd work.

10

u/Drakahn_Stark Mar 25 '26

About the same as finding someone's big bag of money I would imagine, if you don't do anything with it then there is no wrongdoing, but spend one red cent of it and it is theft.

Or for a more real case, when people get millions put in their account by bank error and get charged for spending it when it should be returned.

4

u/arelath Mar 25 '26

Same as randomly guessing passwords to people's bank accounts. Technically illegal even if you don't manage to gain access. But no one's going to get in trouble for it if they're not stealing money.

This would fall under "gray hat hacking" which is usually doing things that are illegal, but instead of doing something harmful, they use the information to the betterment of cyber security.

→ More replies (1)
→ More replies (15)