6 ms·
When I launched my former bitcoin casino in 2011 (it's gone, but it was a casino where all games, even roulette tables were multiplayer, on a platform built fro
by noduerme 5y ago
When I launched my former bitcoin casino in 2011 (it's gone, but it was a casino where all games, even roulette tables were multiplayer, on a platform built from scratch starting in '08), I handled all web requests through a server in Costa Rica that cost about $6/mo. Where I had a shell corporation for $250/year. Once the front end -- the bullet containing the entire casino code, about 250kb -- loaded, from Costa Rica, and once a user logged in, they were socketed to a server that handled the gaming action in the Isle of Man. Graphics and sounds were still sent from the Costa Rica server. I didn't have a gaming license in the IoM, though - that was around $400k to acquire legally. So I found a former IoM MP who was a lawyer, who wrote a letter to the IoM gov't stating that we didn't perform random calculations on their server, thus weren't a gambling site under IoM law. Technically that meant that no dice roll or card shuffle leading to a gambling win or loss took place on that server. So the IoM server handled the socketed user interactions, chat, hand rotation and tournament stuff. Also the bitcoin daemon and deposits/withdrawals. But to avoid casino licensing, I then set up a VPS in Switzerland that did only one thing: Return random numbers or shuffled decks of cards, with its own RNG. It was a quick backend cUrl call that would return a fresh deck or a dice roll, for any given random interaction on the casino servers. The IoM server would call the Swiss server every time a hand was dealt or a wheel was spun; the user was still looking at a site served from a cheap web host in Costa Rica. And thus... yeah, I guess I handled millions of requests a day over a $6 webserver, if you want to count it that way.
- deleted 5y ago[deleted]
- arcticbull 5y agoVery crafty. Nice. I'm legitimately impressed by every part of that.
- Gepsens 5y agoYou're a fricking genius.
- noduerme 5y agoSarcasm much? I'm a full blown idiot. I was just solving one problem at a time.
- Gepsens 5y agoErm no, I really liked your post
- nickthemagicman 5y agoSame. It was very interesting.
- noduerme 5y agothanks.
- elcomet 5y agoHe's a frickin genius because he found ways to break the law with impunity for his own profit ? I'm surprised by HN sometimes.
- noir_lord 5y agoYou can respect the ingenunity if not the morality of it. His solution was a clever hack because he worked around the law without apparently breaking it directly - clever. That said gambling systems are specifically one class of software I refuse to work on.
- deleted 5y ago[deleted]
- hnbad 5y agoI think the lawyer who convinced the gov't that the operation was legal being a former MP and this taking place in a nation of less than 100,000 people is a crucial element to the story. Incidentally both gambling AND fintech (including crypto) are on the list of industries I refuse to do work with. So I guess BTC gambling would have been off the table for two reasons.
- wiz21c 5y agoDoes this article count as "Cost Rica leaks ?"
- noduerme 5y agoyeah, I'm blowing my HN cover.
- bcrosby95 5y agoWhy go through IoM at all? Why not Costa Rica -> Switzerland, rather than Costa Rica -> IoM -> Switzerland?
- noduerme 5y agoGood question. The original plan was to take normal payment methods (Visa/MasterCard) but it became apparent after Bush passed the ban on online poker that Costa Rica was going to follow suit (or that visa/mc would soon start holding up payments from CR casinos... in which case we might be stuck with debt we couldn't use to pay winnings). Setting up a CR bank acct as a shell requires you to hand over power of attorney to a CR citizen, and also given how shady the entire corporate structure there was and the legal outfit we hired (who thought we could take $100 deposits as payments through their fake real estate portal) I evaluated other routes. These included landing funds in Cyprus and processing through Israeli banks at a 10% markup, and other shady sounding things. I had begun to give up on my little side code project when Bitcoin showed up. The benefit of the Isle of Man was that all funds could be landed there - in a Bitcoin wallet, on a caged dedicated server - without triggering any other financial issues. the only trouble was randomness and gambling.
- ricardobeat 5y agoWith all this trouble, why not just set up shop in one of the many places where online gambling is legal?
- noduerme 5y agoI spent 3 years writing the software in my spare time, and launched it on the $20k I had in savings... personally bankrolling the games. When I began the alpha phase, you could still get an "information processing" license to run a casino in Costa Rica that would allow you to host gambling and which the credit card companies tacitly accepted and would do business with. (Those gambling payments to shady jurisdictions are how Paypal got big, and how Elon Musk made his first nine figures). But by 2010/11, all payment processors had abandoned Costa Rica, and there was nowhere in the world offering a license I could come close to affording. I looked for investment, put together thick books of plans every few months, built 24 games... No one would get behind it, and I couldn't just shelf it, so this was how I launched it without breaking any laws. A few months in, one existing online casino network offered me $100k to just hand it over to them and then come work for them, but I considered the offer extremely insulting.
- hdjjhhvvhga 5y ago> we didn't perform random calculations on their server, thus weren't a gambling site under IoM law. Does it really matter if you get your random number from /dev/urandom or a server in Switzerland?
- the_absurdist 5y agoWhy doesn't it matter?
- withinboredom 5y agoI don’t think it’d hold up in court. This is the same as saying: “I bet you ten bucks when I mail my friend in Switzerland, he will mail back a ten.” The random part is being done in another country, but the betting is still being done wherever you and your friend are.
- ahoka 5y agoIsn't it like betting on games happening in a different country? I'm pretty sure that is still gambling, even if entropy is generated in a different place.
- withinboredom 5y agoMaybe the laws are written that way in IoM just so you don’t have to be registered to bet on Kentucky horse races or sports or whatever? Could be that way on purpose. Interesting loop-hole.
- j1elo 5y agoFocusing on a small but important detail that some have already mentioned but with a more aggressive tone... was your "loophole" system tested in an actual litigation at any point? What I mean is that this: > The IoM server would call the Swiss server every time a hand was dealt might seem like a clever loophole around the laws in IoM, but in reality it sounds to me like the kind of technicalities that wouldn't really pass the reasoning of a human judge, who in their duty of interpreting the law and its intended spirit, would probably consider this an invalid trick and thus that the RNG of the system still resided in IoM, even if technically it didn't. But of course, none of this matters if the casino never had any legal battle to fight where this idea could be tested in court, which is the equivalent of not being "caught".
- noduerme 5y agoIt was never legally tested. It was what I felt I had to do such that the randomness didn't take place on the island. And no randomness ever did. I was in touch with a lot of officers of the large casinos operating out of there at the time, who were curious but skeptical about Bitcoin. I think by the time they realized it was a potentially valuable thing, I had already shut down operations, because I wasn't willing to chase the market into legally gray areas.
- carlmr 5y agoIf you go by technicalities you could have used the argument that you're not generating random numbers, only pseudorandom numbers.
- nephanth 5y agoHum if you're running a casino, I hope you are using at least a bit of [entropy](https://en.m.wikipedia.org/wiki/Entropy_\(computing\) https://en.m.wikipedia.org/wiki/Entropy_\(computing\)) . you wouldn't want your shuffles to be predictable...
- mvc 5y agoHe got an MP on his side which seems to be all it takes these days in the UK.
- amelius 5y agoIt would be even cooler if you derived the random numbers from a lava lamp visible through a window of the Swiss embassy.
- ajnin 5y agoThanks for sharing that, I hope it does not land you into trouble. So, how many billions did you make with that site ?
- deleted 5y ago[deleted]
- oliv__ 5y agoI would love to read a blog post about this. Hell I'd read a book: sounds like there might've been much more to this venture than you're letting on