Bitcoin Forum
June 30, 2024, 09:34:02 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Jonbet Double V2 Seeding Event  (Read 24 times)
jonbet (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
June 14, 2024, 01:56:41 PM
 #1

Welcome! In preparation for the upcoming launch of our original game Double V2, we're performing this seeding event to ensure fairness and immutable rolls. For this seeding event we are following a similar approach as Stake.com.

As part of our fairness we generated a chain of 10,000,000 SHA256 hashes where each hash is the hash of the hexadecimal representation of the previous hash. Being the last hash in the chain: 0c19a8080957f6a2b227302f97fc52283af759b03b67d9afbe3fcccfaae14677


Script to calculate Double roll:
Code:
const { createHmac } = require('crypto');

const TILES = [
  {number: 0, color: 'white'},
  {number: 11, color: 'black'},
  {number: 5, color: 'red'},
  {number: 10, color: 'black'},
  {number: 6, color: 'red'},
  {number: 9, color: 'black'},
  {number: 7, color: 'red'},
  {number: 8, color: 'black'},
  {number: 1, color: 'red'},
  {number: 14, color: 'black'},
  {number: 2, color: 'red'},
  {number: 13, color: 'black'},
  {number: 3, color: 'red'},
  {number: 12, color: 'black'},
  {number: 4, color: 'red'}
];

const getRollFromHash = hash => {
  // random number from 0-15
  const roll = parseInt(hash, 16) % 15;
  const tile = TILES.find(t => t.number === roll);

  let color;
  switch (tile.color) {
    case 'white':
      color = 0;
      break;

    case 'black':
      color = 2;
      break;

    case 'red':
      color = 1;
      break;

  }

  return {
    tile: roll,
    color: color
  }
}

// these will be the 10M pre generated rolls to be used
const hashChain = [];

const gameHash = hashChain.pop();

// It's the hash we're gonna be using of the result of a yet to be mined block on the blockchain #847,904
const blockHash = '';

const hash = createHmac('sha256', gameHash).update(blockHash).digest('hex');

const {tile, color}= getRollFromHash(hash);
console.log({ tile, color });



We’re gonna be using a BlockHash that hasn’t been mined at the time of this post, we’re expecting to use Bitcoin block 847,904, this to prove we have no influence over the outcome of the game. Please guys feel free to quote this post so this will be all set in stone.

Looking forward to show you guys Double V2 very soon!
jonbet (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
June 14, 2024, 02:22:32 PM
 #2

Archived post: https://archive.ph/xpYJ9

Client seed has been mined!
000000000000000000017e6ca87fb2357cfac01fd1dccfadbc47aff3e5dcb3ea


https://www.blockchain.com/explorer/blocks/btc/847904
Cantsay
Hero Member
*****
Offline Offline

Activity: 798
Merit: 560


Bitcoin Casino Est. 2013


View Profile WWW
June 14, 2024, 03:08:02 PM
 #3

When are we finally going to see the harvest? You have been seeding for close to a year now and yet we have even seen any thing sprouting from your field yet.  Grin

Joking aside, I have gotten used to your name to the extent that whenever a notification comes in I instantly know that it’s a thread for seeding - it would be nice to one day open your link and find out that you’ve finally launched your site.

███▄▀██▄▄
░░▄████▄▀████ ▄▄▄
░░████▄▄▄▄░░█▀▀
███ ██████▄▄▀█▌
░▄░░███▀████
░▐█░░███░██▄▄
░░▄▀░████▄▄▄▀█
░█░▄███▀████ ▐█
▀▄▄███▀▄██▄
░░▄██▌░░██▀
░▐█▀████ ▀██
░░█▌██████ ▀▀██▄
░░▀███
▄▄██▀▄███
▄▄▄████▀▄████▄░░
▀▀█░░▄▄▄▄████░░
▐█▀▄▄█████████
████▀███░░▄░
▄▄██░███░░█▌░
█▀▄▄▄████░▀▄░░
█▌████▀███▄░█░
▄██▄▀███▄▄▀
▀██░░▐██▄░░
██▀████▀█▌░
▄██▀▀██████▐█░░
███▀░░
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!