Bitcoin Forum
May 12, 2024, 07:23:53 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Slide re-seeding event  (Read 152 times)
Stunna (OP)
Legendary
*
Offline Offline

Activity: 3192
Merit: 1278


Primedice.com, Stake.com


View Profile
September 26, 2020, 03:06:29 AM
 #1

Welcome to slide seeding event #2. We re-coded Slide to clean up our codebase add some changes/features. Unfortunately we pushed a version to production that had mixed up the two tables in the function that returned RNG inputs and thus our previous seed was exposed briefly.

This is being seeded the same way as the previous slide event using a method made popular by rhavar.

To prove our fairness we have generated a chain of 10,000,000 SHA256 hashes where each hash is the hash of the hexadecimal representation of the previous hash.

The last hash in the chain is: 8fdb3105bc0eee5ab95ebd3b94084a261422af67b53fca4d2ba480f32e3b7bae

The formula for generating the game result:
Code:
const gameHash = hashChain.pop()
const hmac = createHmac('sha256', gameHash);
// blockHash is the hash of bitcoin block 631,111
hmac.update(blockHash);
const hex = hmac.digest('hex').substr(0, 8);
const int = parseInt(hex, 16);
const result = Math.max(1, (2 ** 32 / (int + 1)) * (1 - 0.02))

blockHash used is Bitcoin block 650,200  which has not been mined at time of posting. Basically we are using the hash of a future bitcoin block as a client seed so players can be certain that we did not pick one in the house’s favor. I’d appreciate it if someone could quote this post so this is all set in stone.


Stake.com Fastest growing crypto casino & sportsbook
Primedice.com The original bitcoin instant dice game
1715541833
Hero Member
*
Offline Offline

Posts: 1715541833

View Profile Personal Message (Offline)

Ignore
1715541833
Reply with quote  #2

1715541833
Report to moderator
1715541833
Hero Member
*
Offline Offline

Posts: 1715541833

View Profile Personal Message (Offline)

Ignore
1715541833
Reply with quote  #2

1715541833
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715541833
Hero Member
*
Offline Offline

Posts: 1715541833

View Profile Personal Message (Offline)

Ignore
1715541833
Reply with quote  #2

1715541833
Report to moderator
DarkStar_
Legendary
*
Offline Offline

Activity: 2758
Merit: 3282


View Profile WWW
September 26, 2020, 06:14:32 AM
Merited by Stunna (4)
 #2

Welcome to slide seeding event #2. We re-coded Slide to clean up our codebase add some changes/features. Unfortunately we pushed a version to production that had mixed up the two tables in the function that returned RNG inputs and thus our previous seed was exposed briefly.

This is being seeded the same way as the previous slide event using a method made popular by rhavar.

To prove our fairness we have generated a chain of 10,000,000 SHA256 hashes where each hash is the hash of the hexadecimal representation of the previous hash.

The last hash in the chain is: 8fdb3105bc0eee5ab95ebd3b94084a261422af67b53fca4d2ba480f32e3b7bae

The formula for generating the game result:
Code:
const gameHash = hashChain.pop()
const hmac = createHmac('sha256', gameHash);
// blockHash is the hash of bitcoin block 631,111
hmac.update(blockHash);
const hex = hmac.digest('hex').substr(0, 8);
const int = parseInt(hex, 16);
const result = Math.max(1, (2 ** 32 / (int + 1)) * (1 - 0.02))

blockHash used is Bitcoin block 650,200  which has not been mined at time of posting. Basically we are using the hash of a future bitcoin block as a client seed so players can be certain that we did not pick one in the house’s favor. I’d appreciate it if someone could quote this post so this is all set in stone.



Quoted and archived. As of this post, the latest block is 650,037.

taking a break - expect delayed responses
Pages: [1]
  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!