🤓Proving Fairness

Proving Fairness

Take the seed from the end of the game and apply keccak256 to it and you'll get the seed hash that the game started with. With this information coupled with the transaction data when the endGame was mined with, you'll be able to recreate the winning number.

(I'm working on some off-chain functionality to allow you to plug a game ID in, and it will work the full calculation for you, proving fairness and randomness.)


Is this method perfect?

The most verifiably provably random and secure way to handle this would be to use an oracle. As mentioned, previously, they're just too slow.

Until Avalanche and other mainstream blockchains implement a true VRF in-chain with each transaction, this will continue to be solved by other secure mechanisms for realtime games like ChopChop.

Is it fair?

Yes. By combing off-chain and on-chain data together, commit-reveal works to ensure a fair and random game is had by all.

Last updated