pull down to refresh
0 sats \ 0 replies \ @roulette OP 1 Apr \ parent \ on: LN Roulette – A Lightning-Powered, Provably Fair Roulette Game bitcoin
i operated one of the biggest nodes in lightning at the beginning, locked 1 btc and give up...
yes, also roulette players pay this 0.4% when they withdraw, but when they win, if they win :) i think they don't care, if they loose it doesn't matter :)
me as well, i like it, i tried almost all of them but phoenix is my favorite, also i use phoenixd as backend, have no time to manage channels
The key to proving fairness in RNG-based games lies in implementing a "commit-reveal" scheme that makes it mathematically impossible to manipulate the outcome after seeing the bets. Here's how it typically works:
Pre-commitment: Before any bets are placed:
Generate a random seed/number
Create a cryptographic hash of this number (plus optional salt)
Publish this hash publicly
Betting Period: Players place their bets while only knowing the hash
Reveal: After betting closes:
The original seed/number is revealed
Anyone can verify that:
a) The hash matches the revealed number (proving it wasn't changed)
b) The number is used in a deterministic way to generate the outcome
The critical point is that once the hash is published, it's cryptographically impossible to find a different number that would produce the same hash.
This means:
We can't change the number after seeing the bets
We can't "work backwards" from desired outcomes to find a matching number
The number must have been chosen before any bets were placed
To further enhance transparency:
Use a verifiable source of randomness for the initial seed (like blockchain block hashes)
Make the entire process open source
Provide tools for users to verify each step independently
This system mathematically proves that:
The outcome was determined before betting started
It couldn't be modified based on betting patterns
The operator cannot manipulate the result
The beauty of cryptographic proofs is that you don't have to trust the operator - you can verify everything yourself!
Thank you for pointing that out!
You’re absolutely right—we should be displaying the full hash to ensure true provable fairness. Showing only the first 7 characters was an oversight on our part. We will implement a tooltip feature that allows users to view the entire hash when hovering over it.
We appreciate your feedback