pull down to refresh
121 sats \ 7 replies \ @pycan 4 Jan \ on: LN Roulette – A Lightning-Powered, Provably Fair Roulette Game bitcoin
Can you elaborate on "provably fair"? How can I verify?
Absolutely! Here’s how we do it:
Before each spin, we generate a random number (0..36) and a salt, then publish the SHA-256 hash of num:salt
After the spin, we reveal the salt, so you can re-hash the exact same num:salt combination.
If the hash matches what we published before the spin, you know the result couldn’t have been altered.
reply
reply
Yes, absolutely. We publish the hashed result (random number + salt) before any bets are placed. Once it’s publicly hashed, we can’t just choose another salt or number afterward. Because of how SHA-256 works, forging a second salt to match the exact same hash is essentially impossible. When the spin ends, we disclose the salt so you can verify we didn’t alter the result based on bets.
Wow, cool way to do provably fair! The logic checks out. I zapped ya 1K sats for that!
reply