Post
Topic
Board Gambling
Re: IsItProvablyFair.org - Instantly verify if the game you just played was fair!
by
darkheroo
on 03/01/2024, 04:06:07 UTC
Nice work! I'd suggest also offering something that people can run themselves, so they can verify the code is really telling the truth or not.

  I'll try to make it faster by upgrading the server,  if there's enough interest for the site.

There's no need to upgrade the server to make it faster.  Jut track the latest game you've successfully verified, e.g.


So let's say you verify game 23:

Code:
maxVerifiedGame = { gameId: 23, hash: "0f08611e0751a8311ef15d80ed83fa78f7d44e8e0713e47da8481ebba240c665" }


Now if you want to verify game 25,  you only need to hash it 2 times and then check if matches `maxVerifiedGame`. If it does, then game 25 is verified. If it doesn't, then it's not.


Basically it's the same idea of a blockchain. When a new block(s) come in, you only verify the new block(s) there's no reason to verify the old ones all the way to the genesis block each time

Good idea! Also, yes, I've made it so people can run the code locally by downloading the files on Github. All the source code for the site is open source and available here: https://github.com/drkhero/isitprovablyfair