* New! Latest stable version of OK wallet v7-SpaceMonkey *

Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - OKBets

#1
Dear users, today I will be explaining how the provably fair system of https://okbets.io works!

Before you start betting, be sure to write down the "Current Hash" on the provably fair tab in Dice


Then select a nice client seed in the same tab and start betting, for this example I have chosen the seed "Magic_Seed" and my hashed server seed was "c9b6b0d570839994968fda2af918f010e08c1d56e0cad0c3f454ed91e0c95bda" but anything would do!

Then place your bets and you will see your actual client seed.

As you can see it ends with "-" and then a number, this number increases every bet you make!

Once you are done with betting, hit the "Change Server Seed" button in the provably fair tab and write down the "Previous Server Seed"

With this previous server seed you are able to generate the "Current Hash" you had written down earlier and ofcourse the outcomes to the bets. In our example I have recieved "1973597b53d1037aecb86221fae8fa174b0a0ce53a8ced27b2deb56069ee6dfb" as the server seed.

To generate the hash previously written down, all you have to do is creating the SHA256 hash of the server seed which you just recieved, you can use an online tool to do this, https://www.freeformatter.com/sha256-generator.html#ad-output is one that works!
If everything went correctly then the hash you get from the tool should be the same as the hash you've recieved beforehand, if you do this with the example values you'll see that it was indeed the same and thus https://okbets.io couldn't have cheated you on that!

Next we will have to create the actual outcomes of the bets!
To do this we will have to generate a SHA512 HMAC, you can use https://www.freeformatter.com/hmac-generator.html#ad-output for this!
In the "Copy-paste the string here" box you will have to put your client seed, in my example this is "Magic_Seed-5"
in the "Secret Key" box you will have to put the server seed in, in this example it's "1973597b53d1037aecb86221fae8fa174b0a0ce53a8ced27b2deb56069ee6dfb"

You will then recieve a hexadecimal string, in this example it is "22fea2cb4d9f7f9d34ebf7aad522062a9d4f7203c5f72f335299a79b0d67ecb60a874afab0856dfe23cc18e79940b0860daf9f4d7ebd77663e6f37e04fcc870d"

From this string we take the first 8 characters, in our case "22fea2cb"
We convert this from hexadecimal to a decimal number, in our case this is "587113163"
Then we have to divide this by 4294967296 (or 2^32), and this results in "0,13669793563894927501678466796875", and as shown in a previous screenshot, the actual outcome for this bet was "13.67" so it was indeed correct!

You can continue these steps for all your bets made with the server seed and prove that OKBets.io is indeed fair!




For the Jackpot things are done a little bit differently, here a random number between 0 and 1 is chosen and used as the % that wins, so lets say its 0.5 and we have 3 betters who all bet 1 OK, #1 #2 and #3
first 33.33% goes to #1
second 33.33% goes to #2
third 33.33% goes to #3
The number is 50%
which goes through #1 and lands in #2, making #2 win the pot.

This is provably fair due to the hash being given infront and the outcome + secret after the game.
With the outcome and the secret you can calculate the hash given beforehand by going to this site http://rextester.com/l/nodejs_online_compiler and executing the following code
var outcome = "outcome"
var secret = "secret"


const crypto = require('crypto');


crypto.pbkdf2(outcome, secret, 10000, 64, 'sha512', function(err, derivedKey) {
console.log(derivedKey.toString('hex'))
});


You will have to change "outcome" to the outcome (the number) and "secret" to the secret (second box) but you need to keep the "" in it
#2
OK Projects / OKBets.io
May 19, 2017, 04:40:34 PM
Hey guys I'm here to tell you about my upcoming site OKBets.io! (domain still transfering)
https://okbets.io is an upcoming gambling site currently in Beta with Bitcoin functionality only.
It features jackpot (and soon also dice) as its games.
The site is looking for investors on the OKCash bankroll and is currently allowing people to "reserve" their investments.
This will be your one chance to invest in the OKCash bankroll of this site.
Join the discord using this link > https://discord.gg/57WfguV <
Any questions can be asked here or inside the discord (preferably in there)
#3
OK Projects / OKBets feature poll
April 27, 2017, 01:50:33 PM
Hey guys, OKBetswith a few questions on features on OKBets.
As some of you may have noticed, the built-in OKCash market in OKBets is not being used at all apart from some troll prices, so I figured I had to switch it up. I could change OKBets so that the market will be linked to bittrex but there are a few risks to this (most of which are for me) so I wanted to gauge interest before beginning.
I have a few options on how to do this, I could allow users to buy/sell whatever they want but this could lead to the bot having too little of one currency and too much of the other which would mean people wouldn't be able to withdraw their OKCash, I could also only allow the buying of OKCash which would limit the chances of this happening (and allow me to create a safety net for it due to the fast confirmations on OKCash :P)

tl;dr Should I change the .buyok/.sellok feature to be linked with bittrex instead of its own market & should I keep  .sellok

Threats:
Link both to bittrex:
The bot can have too little balance on either bittrex or the bot itself which would stop people from buying/selling OK and withdrawing from OKBets
Link buying to bittrex:
The bot can have too little balance on bittrex which would halt the buying of OK, There can't be any withdrawal issues if done correctly
Do nothing:
The feature won't be used.

You can also vote on http://www.strawpoll.me/12838815 if you don't have a forum account