Global Feed Post Login
Replying to Avatar josh

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.

9d
nah 6mo ago đź’¬ 1

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

Reply to this note

Please Login to reply.

Discussion

Avatar
josh 6mo ago

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

Thread collapsed