How about distributed, verifiable, random numbers for gambling? Possible via nostr or p2p network?

Reply to this note

Please Login to reply.

Discussion

How would that work?

That was kind of the question. Presumably, naively, one could pull random numbers from random sources in a network, or maybe even this/these operations could produce randomness, whereby the production of randomness (numbers and/or sources) could be verified, and used to satisfy some conditions.

Crude example for a roll of dice:

Put in some redeeming script (if that in itself is a thing) if this random hash that I got from a random source, all of which I imagine is verifiable, ends in ... then the next roll of the dice is ..., and if that dice roll is ..., then pay ..., else pay ...

Shoot, I wonder if hashes of contracts themselves could be the randomness used in some script.

Way above my pay grade

Mine too, but I have a vague idea of some things. I really wonder about a couple things though.

If the hash of a discreet log contract could be used as the random oracle for said contract, and there were a marketplace for participation in various contracts, then perhaps a decentralized casino could exist?! 🤷

I feel like lightning would explode if this were the case.

🤔 Cursory use of ChatGPT hints that it may be possible using various commit-reveal schemes.

The most i can guarantee you is we're doing some challenge for it to compete against other nostrichs