Bitcoin Forum
May 21, 2024, 02:03:02 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 »  All
  Print  
Author Topic: Want to know about Provably fair...  (Read 2434 times)
BitCoinDream (OP)
Legendary
*
Offline Offline

Activity: 2324
Merit: 1204

The revolution will be digital


View Profile
July 23, 2014, 08:45:37 PM
 #1

I see some gambling sites mention that they are provably fair. They provide some seed and ask to check some hash or whatever. My question is, can this fairness really be checked from outside ? Where are they twisting to make sure the house's win ?

arieq
Sr. Member
****
Offline Offline

Activity: 364
Merit: 256


View Profile
July 23, 2014, 09:42:41 PM
 #2

Yes, one way to verify a game’s fairness is through the combination of a server seed and a client seed. We can compare the hash with the server seed that has been revealed by the house. If we find a match, then we can say that the game has a provable fairness.

So, basically a fair game result is calculated as follows:
1. The server creates a hashed server seed and sent to the player.
2. The player creates his own random client seed
3. The combination of the two seeds are used to calculate the result of the game.
4. The server seed is revealed to the player so the player can check wether it matches the hash that was sent earlier

Wusolini
Legendary
*
Offline Offline

Activity: 1190
Merit: 1000


no need to carry heavy money bags anymore


View Profile
July 23, 2014, 09:45:54 PM
 #3

I see some gambling sites mention that they are provably fair. They provide some seed and ask to check some hash or whatever. My question is, can this fairness really be checked from outside ? Where are they twisting to make sure the house's win ?


Yes, it can.


I can explain it on simple example, (just the principle)

BTCRock - it's game where you have a grid 20x20 and you have 6 attempts to find gold vein.


Their proof is that immediately after solving captcha you can see hash of "gold vein coordinates ".





After you made your 6 tries, a result is shown to you:


 



Proof is that from begining the coordinates  gold vein was [11,9], and was not moved if you luckily hit it ( it would change the hash)

You can check it using: http://www.xorbin.com/tools/sha256-hash-calculator

1 - enter: 65879c50984f5b9ede009960e6efa3c6|[11,9]    (proof of location, shown after game end)
2 - hash it (using sha2586)
3 - you'll get: c0344a8d187371c671d9e16cb27190a74caef8fe32ab66be7287ed050fca2b12       (this is what you know from begining)

tip: for clarity try to change one coordinate and hash it again, will see you got completely different hash.


P.S. This's only principle, and can be used in various way. You should check description on particular site.

rarkenin
Hero Member
*****
Offline Offline

Activity: 784
Merit: 500



View Profile
July 23, 2014, 09:48:00 PM
 #4

These sites tend to use slightly counterintuitive terminology. Provably random? Yes. They can't pick results in advance; nor can you. Provably fair? No. They still get a bit of an edge to keep a profit, although they can be verified to not be taking more than their official rules say.
williamj2543
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500

Get ready for PrimeDice Sig Campaign!


View Profile WWW
July 23, 2014, 09:51:07 PM
 #5

With a bit of php knowledge you can easily make your own 5 line script checking any websites fairness.
Look at my code for generating random numbers (pretty similar to other websites)
Code:
$hash = hash_hmac('sha512','TXID:BETS', 'SECRETKEY'); 
$firstfive = hexdec(substr($hash, 0, 5));
if($firstfive > 1000000) {
$firstfive = hexdec(substr($hash, 6,5));
}
echo $firstfive/10000;
I take the TXID of the bet, the amount of bets, and then the daily secret key which the hash of the secret key is stored for people to check the next day. If the hash of the secret key matches the one shown on the list, that means the secret key was indeed used. These pieces of data are hashed together in sha512 using hmac. I take the first 5 digits of that hash and convert it from hexadecimal to decimal. This gives a number that 98% of the time is under 1000000 (if it isnt I take the next 5 digits), and then divide that number by 10000 and I get a two digit number out of a hundred with some decimal places. The next day the user can verify their bet by pasting in their TXID, their amount of bets, and then the secret key that is released the next day, and then run it through the script. If the echod number matches the number that was used on the gambling site, I was indeed telling the truth and their bet was fairly made. Every website explains their own method of fair betting.

█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
▓▓▓▓▓  BIT-X.comvvvvvvvvvvvvvvi
→ CREATE ACCOUNT 
▓▓▓▓▓
█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
Rum152
Full Member
***
Offline Offline

Activity: 147
Merit: 100

www.secondstrade.com - 190% return Binary option


View Profile
July 23, 2014, 10:01:37 PM
 #6

These sites tend to use slightly counterintuitive terminology. Provably random? Yes. They can't pick results in advance; nor can you. Provably fair? No. They still get a bit of an edge to keep a profit, although they can be verified to not be taking more than their official rules say.
I would say that they are fair in regard to the fact that they disclose the odds of winning ahead of time, and the actual odds are what they say they are.

degold
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
July 23, 2014, 11:25:35 PM
 #7

I see some gambling sites mention that they are provably fair. They provide some seed and ask to check some hash or whatever. My question is, can this fairness really be checked from outside ? Where are they twisting to make sure the house's win ?


Yes, it can.


I can explain it on simple example, (just the principle)

BTCRock - it's game where you have a grid 20x20 and you have 6 attempts to find gold vein.


Their proof is that immediately after solving captcha you can see hash of "gold vein coordinates ".





After you made your 6 tries, a result is shown to you:


 



Proof is that from begining the coordinates  gold vein was [11,9], and was not moved if you luckily hit it ( it would change the hash)

You can check it using: http://www.xorbin.com/tools/sha256-hash-calculator

1 - enter: 65879c50984f5b9ede009960e6efa3c6|[11,9]    (proof of location, shown after game end)
2 - hash it (using sha2586)
3 - you'll get: c0344a8d187371c671d9e16cb27190a74caef8fe32ab66be7287ed050fca2b12       (this is what you know from begining)

tip: for clarity try to change one coordinate and hash it again, will see you got completely different hash.


P.S. This's only principle, and can be used in various way. You should check description on particular site.

Thanks wusolini, you explained very well, I also always thought how probably fair work.

■██████ PB Mining  ⌂  0.0016 BTC / GHS ██████■
mrhelpful
Legendary
*
Offline Offline

Activity: 1456
Merit: 1002



View Profile
July 23, 2014, 11:30:09 PM
 #8

I thought a seed can be manipulated..
rarkenin
Hero Member
*****
Offline Offline

Activity: 784
Merit: 500



View Profile
July 24, 2014, 12:08:50 AM
 #9

I thought a seed can be manipulated..

Yes, but each side keeps a secret from the other side, so in the end all you can do is change the outcome without knowing what you change it to.
mnmShadyBTC
Full Member
***
Offline Offline

Activity: 151
Merit: 100


View Profile
July 24, 2014, 01:55:29 AM
 #10

I thought a seed can be manipulated..
not when half of the seed is secret and bit revealed until the next day

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
PRIMEDICE
The Premier Bitcoin Gambling Experience - PRIMEDICE 3 HAS LAUNCHED @PrimeDice
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
aatrox
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
July 24, 2014, 03:20:22 AM
 #11

cant the casino just go back to learn your betting style?
tinof
Full Member
***
Offline Offline

Activity: 343
Merit: 100


View Profile
July 24, 2014, 04:37:32 AM
 #12

The odd of winning is already on house side. Pointless to cheat and risk damaging the reputation.

BitCoinDream (OP)
Legendary
*
Offline Offline

Activity: 2324
Merit: 1204

The revolution will be digital


View Profile
July 24, 2014, 09:30:47 AM
 #13

I see some gambling sites mention that they are provably fair. They provide some seed and ask to check some hash or whatever. My question is, can this fairness really be checked from outside ? Where are they twisting to make sure the house's win ?


Yes, it can.


I can explain it on simple example, (just the principle)

BTCRock - it's game where you have a grid 20x20 and you have 6 attempts to find gold vein.


Their proof is that immediately after solving captcha you can see hash of "gold vein coordinates ".





After you made your 6 tries, a result is shown to you:


 



Proof is that from begining the coordinates  gold vein was [11,9], and was not moved if you luckily hit it ( it would change the hash)

You can check it using: http://www.xorbin.com/tools/sha256-hash-calculator

1 - enter: 65879c50984f5b9ede009960e6efa3c6|[11,9]    (proof of location, shown after game end)
2 - hash it (using sha2586)
3 - you'll get: c0344a8d187371c671d9e16cb27190a74caef8fe32ab66be7287ed050fca2b12       (this is what you know from begining)

tip: for clarity try to change one coordinate and hash it again, will see you got completely different hash.


P.S. This's only principle, and can be used in various way. You should check description on particular site.

That is an awesome explanation. I wonder how the house make sure that they win in the long term ? Do they really gamble with the user choice ?

rarkenin
Hero Member
*****
Offline Offline

Activity: 784
Merit: 500



View Profile
July 24, 2014, 11:52:26 AM
 #14

I see some gambling sites mention that they are provably fair. They provide some seed and ask to check some hash or whatever. My question is, can this fairness really be checked from outside ? Where are they twisting to make sure the house's win ?


Yes, it can.


I can explain it on simple example, (just the principle)

BTCRock - it's game where you have a grid 20x20 and you have 6 attempts to find gold vein.


Their proof is that immediately after solving captcha you can see hash of "gold vein coordinates ".





After you made your 6 tries, a result is shown to you:


 



Proof is that from begining the coordinates  gold vein was [11,9], and was not moved if you luckily hit it ( it would change the hash)

You can check it using: http://www.xorbin.com/tools/sha256-hash-calculator

1 - enter: 65879c50984f5b9ede009960e6efa3c6|[11,9]    (proof of location, shown after game end)
2 - hash it (using sha2586)
3 - you'll get: c0344a8d187371c671d9e16cb27190a74caef8fe32ab66be7287ed050fca2b12       (this is what you know from begining)

tip: for clarity try to change one coordinate and hash it again, will see you got completely different hash.


P.S. This's only principle, and can be used in various way. You should check description on particular site.

That is an awesome explanation. I wonder how the house make sure that they win in the long term ? Do they really gamble with the user choice ?

They design the game so that in a fair, unmodified implementation under the rules, they get a house edge. A basic example would be a game that pays 2x a bet with provably fair "rolling", but you win 48% of the time. For instance, it picks a number between 1 and 100, and you win if it is less than or equal to 48.
notlist3d
Legendary
*
Offline Offline

Activity: 1456
Merit: 1000



View Profile
July 24, 2014, 01:10:01 PM
 #15

Keep in mind even "fair" house comes out ahead.  The place you gamble at always will win over 50 percent overtime, if not it will go out of business.  You are betting on being one of the "lucky" ones.
wunkbone
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


View Profile
July 24, 2014, 01:15:50 PM
 #16

Gambling sucks, you will lose in the long run due to house edge.

The Transit Coin is on the way. help us to decide the path we have to follow:

https://bitcointalk.org/index.php?topic=1066969

http://tnttalk.org

TNT COIN SHOPPING MALL COMING SOON
<a href="https://www.vultr.com/?ref=6829767"><img src="https://www.vultr.com/media/468x60_03.gif" width="468" height="60"></a>
Testing123
Hero Member
*****
Offline Offline

Activity: 561
Merit: 500



View Profile
July 24, 2014, 02:19:27 PM
 #17

cant the casino just go back to learn your betting style?

If you change the client seed randomly from to time, the house can't get advantage (other than the house edge) even if it knows your betting style.

InwardContour
Sr. Member
****
Offline Offline

Activity: 644
Merit: 260


View Profile
July 24, 2014, 04:23:40 PM
 #18

Gambling sucks, you will lose in the long run due to house edge.

Yes, even if you play in provably fair websites.
There are many betting methods to try, but no one can ensure a long term win.
You are playing against the site owners, not against other players, therefore you are fated to lose.
Malin Keshar
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


View Profile
July 24, 2014, 05:14:47 PM
 #19

There are possible issues with that probably fair stuff, see this topic

https://bitcointalk.org/index.php?topic=283547.0

And this article


for more info(article cited in the topic):

http://www.reddit.com/r/Bitcoin/comments/1frm4x/provably_fair_by_bitzino_not_provable_with/


There are also topics questioning if some sites are provably fair or not, you might want to search that subforum and see by yourself.
ahri
Newbie
*
Offline Offline

Activity: 54
Merit: 0


View Profile
July 24, 2014, 05:53:45 PM
 #20

There are possible issues with that probably fair stuff, see this topic

https://bitcointalk.org/index.php?topic=283547.0

And this article


for more info(article cited in the topic):

http://www.reddit.com/r/Bitcoin/comments/1frm4x/provably_fair_by_bitzino_not_provable_with/


There are also topics questioning if some sites are provably fair or not, you might want to search that subforum and see by yourself.

Damn just went to the other thread.

Thanks for exposing that. Provably fair can be exploited..
Pages: [1] 2 3 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!