Pages:
Author

Topic: IsItProvablyFair.org - Instantly verify if the game you just played was fair! - page 2. (Read 229 times)

legendary
Activity: 2226
Merit: 1049
Leading Crypto Sports Betting & Casino Platform

All the code for this website is open source and available on Github: https://github.com/drkhero/isitprovablyfair

If this website gains traction and if there's interest for it, I'll be extending support for other casinos too. Do not hesitate to give feedback and let me know what you all think!  Grin

Honestly, this is a very good development, and congratulations for coming up with such a wonderful idea and also bringing it to life.

But I am kind of sad though, would have made more sense if you would extend support for other casinos regardless of how much interest the project generates under Bustabit.
And besides, why choose Bustabit? Bustabit is not the most popular and most used online gambling casino on this forum, and personally, i believe that not too many users on this forum are playing there, if you needed alot of interest on this project, you should have choose casinos like Stake, Rollbit, bc.game and so on, this are popular casinos on this forum and I trust alot of users will want to use this your site to verify if the games played on any of this casinos is provably fair.

But all the same, I still hope you would provide support for other casinos regardless of how interest the program generates under Bustabit like I said before.
legendary
Activity: 2338
Merit: 1081
#SWGT CERTIK Audited
A very useful tool. I was thinking of making a similar tool while researching online casinos that run provably fair games and why crypto enthusiasts should switch to them. I do not frequent Bustabit but I can understand the importance of this tool. It is a minimalistic and intuitive tool. Thanks for posting Smiley
hero member
Activity: 1358
Merit: 850
Yeah, when you run through 8 million games, it can take up to 10+ seconds to get a result.  I'll try to make it faster by upgrading the server,  if there's enough interest for the site.
I see. It means when we will have 16 million games, it will be further slower. You must upgrade to a better server LOL, Don't forget to attach a Bitcoin address to the website so that interested users can contribute to running the tools. I may contribute a little when the fee is cheap enough LOL.
You have another tool to check the profit on bustabit investment profit calculator. I can't access the site. Did you abandon the project?
newbie
Activity: 11
Merit: 7
Great tool! I have played Crash on bustabit for the first time and that has been a few years LOL.
I just have checked a few games from bustabit and it works fine. It takes a little time to get the result. Can you make it a bit faster?

If this website gains traction and if there's interest for it, I'll be extending support for other casinos too. Do not hesitate to give feedback and let me know what you all think!  Grin
I guess there aren't a lot of players who usually verify the game; I haven't seen many bothering on this LOL. Nevertheless, feel free to add support for moneypot as well. I played there last month.

Thank you for testing it out!

Yeah, when you run through 8 million games, it can take up to 10+ seconds to get a result.  I'll try to make it faster by upgrading the server,  if there's enough interest for the site.
hero member
Activity: 1358
Merit: 850
Great tool! I have played Crash on bustabit for the first time and that has been a few years LOL.
I just have checked a few games from bustabit and it works fine. It takes a little time to get the result. Can you make it a bit faster?

If this website gains traction and if there's interest for it, I'll be extending support for other casinos too. Do not hesitate to give feedback and let me know what you all think!  Grin
I guess there aren't a lot of players who usually verify the game; I haven't seen many bothering on this LOL. Nevertheless, feel free to add support for moneypot as well. I played there last month.
newbie
Activity: 11
Merit: 7
Hello BitcoinTalk Grin,


Today, I'm thrilled to launch isitprovablyfair.org, a brand new site that will allow players to verify in just a few seconds if the game they just played on Bustabit was provably fair.

It does this by checking if the game hash inputted by the user is on the same hash chain as the terminating hash that was generated in the 2018 seeding event: https://bitcointalksearch.org/topic/bustabit-v2-seeding-event-2807542. It can go through millions of games in just a matter of seconds.

How do we do that exactly ? We hash the game hash n times (n being the game ID), and then we check to see if the result matches with the terminating hash. If the result matches with the terminating hash, the game is provably fair. If it doesn't, then the game was altered.

Here is the NodeJs code used to check for the terminating hash:

Code:

function verifyingGameHash(data, gameID) {
    let hashedSeed = data;
    for (let i = 0; i < gameID; i++) {
        hashedSeed = crypto.createHash('sha256').update(hashedSeed).digest('hex');
    }
    return hashedSeed;
}


And finally, we also calculate the game bust with the salted hash of Bitcoin block #505750 to ensure that it matches too.

Code:

const gameResult = (seed, salt) => {
    const nBits = 52;


    const hmac = crypto.createHmac('sha256', salt);
    hmac.update(Buffer.from(seed, 'hex'));
    seed = hmac.digest('hex');


    seed = seed.slice(0, nBits / 4);
    const r = parseInt(seed, 16);


    let X = r / Math.pow(2, nBits);


    X = 99 / (1 - X);


    const result = Math.floor(X);
    return Math.max(1, result / 100);
};


const sha256 = (str) => {
    return crypto.createHash('sha256').update(str).digest('hex');
};


const gameBust = (gameHash, numRounds) => {
    let prevHash = null;
    for (let i = 0; i < numRounds; i++) {
        let hash = prevHash ? sha256(String(prevHash)) : gameHash;
       
        let bust = gameResult(hash, '0000000000000000004d6ec16dafe9d8370958664c1dc422f452892264c59526');
        return bust
        prevHash = hash;
    }
};




All the code for this website is open source and available on Github: https://github.com/drkhero/isitprovablyfair

If this website gains traction and if there's interest for it, I'll be extending support for other casinos too. Do not hesitate to give feedback and let me know what you all think!  Grin


Pages:
Jump to: