Bitcoin Forum
May 03, 2024, 03:27:36 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Economics / Re: Bitcoin does NOT violate Mises' Regression Theorem on: February 05, 2023, 02:05:17 AM
Of course I read it, otherwise I wouldnīt have answered.  And I found it very interesting.  In fact I agree most of you say, maybe my error is the tone I wrote my post which didnīt sound as I agree (sorry about my english).

I agree with you completely on #2 (chicken and egg).   On #1 I donīt see the separation you make between bitcoin and its underlying infrastructure, because I think that all were designed as independents parts of a whole "product" since the beginning.
2  Economy / Gambling / Re: Crash Game Reseeding Event @ BC.Game on: October 12, 2022, 12:22:40 AM
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.


3  Bitcoin / Development & Technical Discussion / Re: ecctools qeschion. asap. help wanted on: September 16, 2022, 09:08:25 PM
 Tongue
I divide 0xf56926f9ca9abc1065153d25383e80 / -1
Result: 20212ef8c52b3a842d0bc

but then I divide pubkey from

0xf56926f9ca9abc1065153d25383e80 - privkey;

pubkey  ./calculatefromkey f56926f9ca9abc1065153d25383e80
privatekey: 0000000000000000000000000000000000f56926f9ca9abc1065153d25383e80
publickey compressed: 02470a635de37b909187e612e5aa853decbb9769416a2ecd055f990c1de501f66c

0xf56926f9ca9abc1065153d25383e80 is a 116-bit private key, which out of range for n. What's more, you're dividing it by -1 so it calculated -0xf56926f9ca9abc1065153d25383e80 instead. This is still not in range, so it'll keep adding N (2^70 = 1??) to this number until it is within range, hence mod(-0xf56926f9ca9abc1065153d25383e80, n) = 20212ef8c52b3a842d0bc <-- this is a 70-bit private key.

When you attempt to make a public key it interprets the input as 256 bits. So if you want to avoid that, you must insert the modulus first.


Hi bro.

How to calculate this for publick key Huh
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!