π What is Fairplay?
Let's discover how we can be 100% CHEAT-PROOF in less than 5 minutes.
Introductionβ
Here is what you'll need to know in this lesson:
- hash
- pre-image
- hmac-512
Shufflingβ
Before each round:
- A "random" seed is chosen.
- Cards are shuffled, based on the generated seed.
- The seed is NOT revealed until AFTER the round has completed.
A Trusted Execution Environment (TEE) is planned for deployment in the very near future.
A TEE is built on a hardware-defined secure enclave, which can be either part of a CPU or a separate chip, strengthening application security by encrypting data in use and enforcing access controls on different memory regions.
You can also find out more by visiting Intelβs Software Guard Extensions (SGX) site.
Dealingβ
Each player's hand is represented by a 512-bit hash.
Each player's hashes are public to everyone for the entirety of the round.
Bettingβ
Each player will send/transfer their antes & raises directly into the CastPoker.sol smart contract.
The Cast Casino Oracle is the ONLY party authorized to execute the contract's payout()
function, based on the final results of each round.
Payoutsβ
Payout are sent/transferred IMMEDIATELY after each round to the respective recipients.
ALL Fairplay details are written to the blockchain during the payout phase, to permanently record that each round is in fact provably fair.