We build a Channels which already using in our casino.
Call “PG Channels”, let the player only on-chain 1 time and play a lot of time off-chain.
share to you all!
Player send ERC-20 token to Game Contract(Lock Token)
PG Channels (Go through API)
Dealer Generate “Random D”, and Hash “Random D”. Announce “Random D’s Hash”
Players Generate “Random P”, and Hash “Random P”. Announce “Random P’s Hash”
Players announced “Bets”
Hash(“Random D’s Hash”, “Random P’s Hash”, “Bets”). Announce “All Hash”
Players Sign the “All Hash”,“Random P” with private key and Announce
Dealer Announce “Random D”
Hash all Random D & P (Game Result’s random seed)
after step 7, player can know the game result immediately.
and starting next game.
We upload the record to Game Smart Contract .
- no need to pay fee.
- no need to wait transaction confirmation.
we call this: hybrid decentralized casino.
since we upload the record at batch, so we have a small average gas used in every game record.
or we will upload the “result” only, and if the result which we upload is not correct , player can challenge.
if a player want to withdraw from our platform, he need to wait a period(2 hours or half day)
make sure we are already upload all the record about him.
but it still have 1 problem, player need to trust us will upload.
so we will do plasma next stage after this modal stable.
play pig world here:https://pig.world/