Bitcoin Forum
April 26, 2024, 06:22:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they believe that the creator of this topic displays some red flags which make them high-risk. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: RollCat.io Seeding Event  (Read 73 times)
rollcat_io (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile WWW
June 23, 2023, 05:41:35 PM
 #1

Welcome to our seeding event (thx Rhavar for the method)!

Starting with a secret we have generated 10 million SHA256 hash chain where each hash is the hash of the hexadecimal representation of the previous hash.

Last hash in the chain is: 10abd09447cea8db13aef1e23a05a058331c62289b712c15c413a0eb873049e1

Code to verify game results:
Code:
import { createHmac } from "crypto";

function result(hash, salt) {
  const CHUNK_SIZE = 8;
  const SECTIONS_COUNT = 54;

  const hmac = createHmac("sha256", salt);

  hmac.update(hash);

  let hex = hmac.digest("hex");

  const hexChunk = hex.substring(0, CHUNK_SIZE);
  const int = parseInt(hexChunk, 16);
  const float = int / 2 ** 32;

  return Math.floor(float * SECTIONS_COUNT);
}

Hexadecimal string representation of hash of bitcoin block 795604 will be our salt, as of posting this, this block has not been mined yet.

I'd appreciate it if someone could quote this post Smiley
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
rollcat_io (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile WWW
June 23, 2023, 06:32:19 PM
 #2

Update: the block 795604 has been mined!

The final salt is: 00000000000000000002c1532ff9294c970e471e26ea8575324df82290386706
arallmuus
Legendary
*
Offline Offline

Activity: 2520
Merit: 1403



View Profile WWW
June 23, 2023, 06:40:22 PM
 #3

Welcome to our seeding event (thx Rhavar for the method)!

Starting with a secret we have generated 10 million SHA256 hash chain where each hash is the hash of the hexadecimal representation of the previous hash.

Last hash in the chain is: 10abd09447cea8db13aef1e23a05a058331c62289b712c15c413a0eb873049e1

Code to verify game results:
Code:
import { createHmac } from "crypto";

function result(hash, salt) {
  const CHUNK_SIZE = 8;
  const SECTIONS_COUNT = 54;

  const hmac = createHmac("sha256", salt);

  hmac.update(hash);

  let hex = hmac.digest("hex");

  const hexChunk = hex.substring(0, CHUNK_SIZE);
  const int = parseInt(hexChunk, 16);
  const float = int / 2 ** 32;

  return Math.floor(float * SECTIONS_COUNT);
}

Hexadecimal string representation of hash of bitcoin block 795604 will be our salt, as of posting this, this block has not been mined yet.

I'd appreciate it if someone could quote this post Smiley

Update: the block 795604 has been mined!

The final salt is: 00000000000000000002c1532ff9294c970e471e26ea8575324df82290386706

No problem, quoting both of these for future reference

R


▀▀▀▀▀▀▀██████▄▄
████████████████
▀▀▀▀█████▀▀▀█████
████████▌███▐████
▄▄▄▄█████▄▄▄█████
████████████████
▄▄▄▄▄▄▄██████▀▀
LLBIT
  CRYPTO   
FUTURES
 1,000x 
LEVERAGE
COMPETITIVE
    FEES    
 INSTANT 
EXECUTION
.
   TRADE NOW   
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!