Duels
We use EOS blockchain and cryptography to determine duel results. When a user creates a duel, a public seed is created, hashed with SHA256 based on 16 random bytes. After all participants have joined the duel, we choose an unobtained EOS block from the very near future. Once the EOS block becomes available, we use it as the secret key to determine the result of the duel. The duel result can be 0 (red), 1 (blue), 2 (green), or 3 (gold). The result is obtained by extracting a number from the HmacSha256 hash generated from the public seed and the secret key (the EOS block id). This process is described below. Thus, neither the user nor Sui Casino will know the result of the duel in advance, until all bets have been placed, which prevents the possibility of any changes and makes the system provably fair.
Last updated