i dont understand how the provably fair works here. howt to check bet. and where
You can also visit
https://kingdice.com/verify.php which describes the provably fair system and includes some pseudocode now on how the system works.
The description provided on
https://kingdice.com/verify.php is not provably fair (but the site is, it's just a bad description).
Kingdice needs to mention that the server hash is calculated using a combination of the server seed (which is basically a salt) and the server roll, and they are combined.
Currently, they only say the server hash is calculated using the server seed, but the roll is calculated using the server roll and client seed, so the hash has no meaning and the server roll can be changed without affecting the hash.
So replacing
var $ServerHash = serverHash // SHA256 of ServerSeed, generated server-side.
with
var $ServerHash = serverHash // SHA256 of (ServerSeed+ '_KD_' + ServerRoll), generated server-side.]
Should resolve the issue
To re-iterate:
KINGDICE IS PROVABLY FAIR, the description of their RNG on the verify page just isn't correct.