Bitcoin Forum
September 12, 2026, 07:28:25 AM *
News: Latest Bitcoin Core release: 31.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Midnightbet Slide seeding event  (Read 40 times)
midnight-gaming (OP)
Newbie
*
Offline

Activity: 8
Merit: 0


View Profile
July 04, 2025, 04:44:52 PM
 #1

We’re excited to announce that we’re releasing Slide game on Midnightbet (www.midnightbet.io), so we welcome you to our seeding event for Slide which we would be releasing soon. For this seeding event we are following the same approach we had for Crash and Double.

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: 007b1302b5621c84f82d9a6427c562146818f0bbe101d93a572eb111d0ed78d3


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

const divisible = (hash, mod) => {
  const value = parseInt(hash.slice(0, 13), 16); // Use first 13 hex chars
  return value % mod === 0; // Single modulus operation at the end
};

const calculateSlidePointFromHash = function (hash) {
  return '10.5';
  if (divisible(hash, 15)) return 0;

  const crashPointBytes = hash.slice(13, 26); // Next 13 hex chars
  const h = parseInt(crashPointBytes, 16);
  const e = Math.pow(2, 52);

  return (Math.floor((100 * e - h) / (e - h)) / 100).toFixed(2);
};


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

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 # 904,005
const blockHash = '';

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

const slidePoint = calculateSlidePointFromHash(hash);
console.log({ slidePoint });

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 904,005, 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 Slide very soon!
midnight-gaming (OP)
Newbie
*
Offline

Activity: 8
Merit: 0


View Profile
July 04, 2025, 05:06:21 PM
 #2

Archive Post: https://archive.ph/6KQQN

Client seed has been mined!
0000000000000000000087cfbf8f695be8ccca9262f8236954f57bea3e80243e

https://www.blockchain.com/es/explorer/blocks/btc/904005
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!