Here's a simple lottery game that could be easily verified by anyone.

Create an npub / website where you can bet on red or black.

When a new bitcoin block comes in, mod (%) the hash value by 2.

If the value is 0 = black, 1 = red.

If black wins, they win reds' pot. And vice versa.

Anyone could verify if cheating took place by doing the incredibly simple block height hash % 2.

You could follow this example to make the full game of roulette with other odds (including house wins).

The real question is legality.

Reply to this note

Please Login to reply.

Discussion

nostr:npub1pc57ls4rad5kvsp733suhzl2d4u9y7h4upt952a2pucnalc59teq33dmza received a nutzap of 42esats from nostr:npub1qny3tkh0acurzla8x3zy4nhrjz5zd8l9sy9jys09umwng00manysew95gx with note: "🫡"

Legality schmegality

I love your name.

Thanks, I'm a maflingo in a kajoozie

nostr:npub1pc57ls4rad5kvsp733suhzl2d4u9y7h4upt952a2pucnalc59teq33dmza received a nutzap of 222esats from nostr:npub1qny3tkh0acurzla8x3zy4nhrjz5zd8l9sy9jys09umwng00manysew95gx with note: "🎯"

When it comes to legality the trick is making sure no human is using the infrastructure.

I don’t know what these words mean together.

That it’s a game played only by AIs lol

can an nbup act as a website? what does npub/website mean

I mean a “nostr account” / bot or a normal website. I think everyone would prefer a nostr bot.

I am on it 🫡

🫡

With bot, how will I close the betting for current block? People will keep on zapping till the last second and even after that.

Should I ignore all the zaps after the current block is mined?

Please will say, "I zapped earlier", "my client was slow", etc.

It will be easier to handle it on website.

Trust me, everyone wants a nostr bot. Besides, it’s good practice to build nostr tools.

1. Don’t issue new invoices after a new block height

2. If new invoices are fulfilled after a new block comes in, have the bot either private message them some ecash ( nostr:nprofile1qqs9pk20ctv9srrg9vr354p03v0rrgsqkpggh2u45va77zz4mu5p6ccppemhxue69uhhjctzw5hx6ef0qyt8wumn8ghj7etyv4hzumn0wd68ytnvv9hxgtcp057c2 ), or zap them the amount.

When you need permission to build.... 🤣

Legality ? 👀 😂

Yeah, I didn't sign up for the Cypherpunk Crypto Anarchist lifestyle in order to be a law abiding citizen lol

You should checkout RogueTrader.io. A buddy of mine built it. They’ve done something similar what you describe, creating a randomly generated index that you can bet on. It’s fully decentralized, non custodial, and it’s provably fair with all random numbers used to generate the betting outcomes posted to the blockchain.

https://roguetrader.io

I'm in. satoshi dice was fun.

nostr:nprofile1qqs0wgf8etnayvkcs4c636fdvepy73jc9q2xlcln64srjdm5e98p8ncpzemhxue69uhhyetvv9ujumn0wd68ytnzv9hxgqgawaehxw309aex2mrp0yhxyatvd35hx6rzda6kuare9e3k7mg9v3zwx what does he mean by block height hash % 2. Give me an example

Kinda like this?

Good idea

Like just-dice.com where you bet with clams

clams

And you can be the house if you want