Bitcoin Forum
June 19, 2024, 03:33:22 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Gambling / Re: Crash Game Reseeding Event @ BC.Game on: September 05, 2023, 05:13:07 PM
Hello world,

Based on community feedback, we're currently in the process of upgrading the Crash game algorithm with salting as requested. The purpose of this post is to describe the new changes within the game result algorithm in addition to publicizing our reseeding event for Crash. Below are the differences in how the game results are generated:

OLD GAME RESULT FORMULA
Code:

  const gameResult = (seed) => {
    const nBits = 52; // number of most significant bits to use
    // 1. r = 52 most significant bits
    seed = seed.slice(0, nBits / 4);
    const r = parseInt(seed, 16);
    // 2. X = r / 2^52
    let X = r / Math.pow(2, nBits); // uniformly distributed in [0; 1)
    X = parseFloat(X.toPrecision(9));
    // 3. X = 99 / (1-X)
    X = 99 / (1 - X);
    // 4. return max(trunc(X), 100)
    const result = Math.floor(X);
    return Math.max(1, result / 100);
  };


NEW GAME RESULT FORMULA
Code:

  const gameResult = (seed, salt) => {
    const nBits = 52; // number of most significant bits to use

    // 1. HMAC_SHA256(message=seed, key=salt)  
    const hmac = CryptoJS.HmacSHA256(CryptoJS.enc.Hex.parse(seed), salt);
    seed = hmac.toString(CryptoJS.enc.Hex);

    // 2. r = 52 most significant bits
    seed = seed.slice(0, nBits / 4);
    const r = parseInt(seed, 16);

    // 3. X = r / 2^52
    let X = r / Math.pow(2, nBits); // uniformly distributed in [0; 1)
    X = parseFloat(X.toPrecision(9));

    // 4. X = 99 / (1-X)
    X = 99 / (1 - X);

    // 5. return max(trunc(X), 100)
    const result = Math.floor(X);
    return Math.max(1, result / 100);
  };



Prior to being used for calculation, each game hash is salted with the lowercase + hexadecimal string representation of the hash from pre-selected Bitcoin block 635,380. This block has not been mined yet as of this post, proving that we have not deliberately selected a mined block with a hash that could be favorable to the house. Once block 635,380 has been mined, the results will be posted to this thread as a reply. The game this post is referencing is at https://bc.game/crash.


2  Bitcoin / Project Development / Re: [ANN] Address / Wallet Watcher - Blockonomics on: February 02, 2023, 11:53:30 PM
We are launching alpha version of https://www.blockonomics.co . This helps you to keep track of balance / transactions of bitcoin addresses. It doesn't require your private keys,  you can add any public bitcoin addresses and enjoy !


  • You can use this  to help you in receiving payment/debit alerts. It sends out a nice notification email on credits/debits. A maximum of one email is sent per block per user.

  • Transactions can be viewed in Activity logs
  • If you have coins in cold storage or use desktop  wallet, you can use this service to easily monitor the balance of your wallet from anywhere.  No need to open your bitcoin wallet each time. Just add all your addresses and chill out with peace !


Server uses leveldb to store/index bitcoind data. In process of adding more features like visualization of transactions and API support.
Please free feel to let me know suggestions
3  Bitcoin / Project Development / Re: [ANN] Address / Wallet Watcher - Blockonomics on: February 02, 2023, 11:47:09 PM
We are launching alpha version of https://www.blockonomics.co . This helps you to keep track of balance / transactions of bitcoin addresses. It doesn't require your private keys,  you can add any public bitcoin addresses and enjoy !


  • You can use this  to help you in receiving payment/debit alerts. It sends out a nice notification email on credits/debits. A maximum of one email is sent per block per user.

  • Transactions can be viewed in Activity logs
  • If you have coins in cold storage or use desktop  wallet, you can use this service to easily monitor the balance of your wallet from anywhere.  No need to open your bitcoin wallet each time. Just add all your addresses and chill out with peace !


Server uses leveldb to store/index bitcoind data. In process of adding more features like visualization of transactions and API support.
Please free feel to let me know suggestions
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!