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 ...

Reply to this note

Please Login to reply.

Discussion

How can we turn the lightning network into a casino where you could be the house (or a part of it) or the gambler?

nostr:nevent1qqsg97jgvyka2zpnh6d2muz4ckc4san0mejhz0h8ky6ceepf4ggwjugpzpmhxue69uhkummnw3ezumt0d5hsygxngvu524h2xzep6ep2n6mw07qx46n28ql9qv49qk88k0vk7ws2e5psgqqqqqqswguh7p

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