-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provably fair verification tool #3
Comments
Hi, thanks for your applications. Could you please provide some more information on how Raiden is needed for this use case and how it will work in this specific case to show that things are provably fair? We have a hard time understanding the relevance of Raiden in your application. |
Hi @czepluch, since we're charging some minimum amount of crypto currencies for say every 50-100 recent bets made by the player on a particular casino. We will use Raiden network for fast micro-payments to our tool. So, the transaction are lightening fast.
|
Okay, so you want to use Raiden for micro transactions between the casinos and the players? |
Well actually no, our probably fair verification tool is independent of any casino verification and we want to use Raiden network for micro transactions between the user and our tool only. |
Okay. I am not entirely sure if that makes sense. Could you explain a bit more in depth how you imagine using Raiden? |
Proposal
So we're building a Provably fair verification tool (app / browser extension) for users of online casinos that enables the player to verify each bet result and make sure they are not being cheated! We'll integrate the UI with the Raiden network for micro-payments for say every recent 50 bets (approx.)
Description
What is "provably fair"?
Players always fear to be cheated on an online casino. This is understandable because it is technically very easy for an online casino to just make you lose. In the Bitcoin gambling community we have a solution for this called "provably fair". Provably fair is a tool that enables you (the player) to verify each roll result and make sure you are not being cheated!
How does provably fair work?
Although there are several implementations of the provably fair method, we will describe the most common one (Roll Dice from PrimeDice). With this method each roll-result is calculated by the following variables:
Your browser will generate a random clientseed. However, you could and should adjust this clientseed before you start. This way you can make sure the site does not know your clientseed in advance.
Now if you make a bet the nonce starts with 0 or 1 depending on the website. After each bet you make, the nonce number will go up by 1.
Calculating the roll result
So this is:
PrimeDice first calculates a HMAC hash with these variables, like this:
hmac-sha512(server_seed, client_seed-nonce)
So in our case this becomes:
Calculated outcome:
Now the first 5 characters are being used (aa671) and converted from hexadecimal to a decimal. You can do this also with an online tool like statman.info/conversions/hexadecimal.html
If this number is over 999,999 than the next 5 characters (aad5e) would be used. But in our case it's 697,969 so this will be used. Now you only have to apply a modulus of 10^4 and divide it by 100. You can do this just on Google by typing:
Use cases (Why Raiden)
Raiden Network provides micro-payments as a feature which will help multiple verification with single token.
The Raiden Network is an off-chain scaling solution for performing ERC20-compliant token transfers on the Ethereum blockchain.
It is Ethereum's version of Bitcoin's Lightning Network, enabling near-instant, low-fee, scalable, and privacy-preserving payments.
Useful on sites:
The text was updated successfully, but these errors were encountered: