pull down to refresh
1022 sats \ 6 replies \ @roulette OP 4 Jan \ parent \ on: LN Roulette – A Lightning-Powered, Provably Fair Roulette Game bitcoin
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
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