Duckdice Verifier

Home » Duckdice Verifier
DuckDice Verifier

Dice Fairness
DuckDice uses a cryptographic system that is proven fair, which means you don’t have to trust us blindly, each roll is cryptographically fair and can be verified to be free of manipulation.

Randomization
To allow ducks to verify their bets, a pair of Server Seed and Client Seed are used to count roll numbers.

The process of creating a new pair of Server Seed and Client Seed is called randomization. It is possible to randomize at any time.

Knowing the Server Seed, Client Seed and Nonce it is possible to calculate the outcome of a bet. To prevent ducks from predicting the results, the Server Seed is hidden, and SHA-256 hashes from the seed are displayed instead. After the next randomization, the previous Server Seed is revealed and the duck can verify the bet. Also, ducks can ensure that the Seed Servers do not change by comparing their hashes before and after randomization.

Roll numbers
To generate roll numbers between 0 and 9,999 we combine your Servers, Your Client’s Seed and your Nonce (betting number):

combination = Server Seed + Client Seed + Nonce
Then, we calculated the SHA-512 hash from that combination. That gives us the 128 character hex string:

hash = SHA512 (combination)
We then take the first 5 characters of the hash and convert it to a decimal number from 0 to 1,048,575 (16 ^ 5 – 1). If it’s less than 1 million, we divide it by 10,000 and use it as a result of your roll. Otherwise, we repeat using the next five characters. We can repeat the process up to 25 times.

In a very rare case ((48,576 / 1,000,000) ^ 25) that none of the 25 trials were lower than 1 million when converted to decimal, we used the remaining 3 characters and turned them into your roll number.

Code Example
The following code sample can be used to verify a bet:

function getRoll (serverSeed, clientSeed, nonce) {
var hash = sha512 (serverSeed + clientSeed + nonce);
var index = 0;
do {
var lucky = parseInt (hash.substr (index, 5), 16);
index + = 5;
} while (lucky> = 1000000);
profit return% 10000;
}

Lottery Fairness
DuckDice uses a cryptographic system that is proven fair, which means you don’t have to trust us blindly, every lottery lottery is cryptographically fair and can be verified to be free of manipulation.

Randomization
At the beginning of ticket sales, we produce Server Seeds that are not disclosed until ticket sales are stopped.

To verify the truth of Server Seed, we publish Server Seed Hashed which cannot be used to restore Server Seed. You can compare after the lottery and make sure the Lottery is fair.

To prevent prediction of results or making of numbers, we use random numbers from the Client Seed in the future. When ticket sales are stopped, we take the current number of XRP blockchain (Stop Block) blocks and determine the Target Block whose hashes will be used as Client Seeds using the following formula:

Stop block + 20 blocks
To prevent ticket fraud, we create and publish a file with all purchased tickets that can be downloaded by any duck when ticket sales are stopped.

When the Target Block has been mined, we take the hash, write it in the Client Seed and start the lottery draw.

When the draw is complete, we reveal all data and provide a third party link to Duck where you can get all the numbers just by pasting the data.

Lottery numbers
To generate lottery numbers between 1 and 36 we combine the lottery, Client Seed and Nonce Server (numeric index):

combination = Server Seed + Client Seed + Nonce
Then, we calculated the SHA-512 hash from that combination. That gives us the 128 character hex string:

hash = SHA512 (combination)
We then take the first 3 characters of the hash and convert them to decimal numbers ranging from 0 to 4095 (16 ^ 3 – 1). If it’s less than 4068, we divide it by 36 and use it as a result. Otherwise, we repeat using the next three characters. We can repeat the process up to 42 times.

In a very rare case ((28/4068) ^ 42) that none of the 42 trials were lower than 4068 when converted to decimal, we used the remaining 2 characters and turned them into numbers.

Instead we add numbers and repeat from the beginning for the next number.

If the number has been displayed, we skip and continue the draw.

Code Example
The following code sample can be used to verify the lottery lottery:

function getNumber(serverSeed, clientSeed, nonce) {
    var hash = sha512(serverSeed + clientSeed + nonce);

      var index = 0;
      var minNumber = 1;
      var maxNumber = 36;
      do {
        var lucky = parseInt(hash.substr(index, 3), 16);
        index += 3;
      } while (lucky >= 4068);

      return minNumber + (lucky % (maxNumber - minNumber + 1));
}

function getNumbers(serverSeed, clientSeed, nonce) {
      var numbers = [];
      var currentNonce = 0;

      while (currentNonce < nonce) {
        var number = getNumber(serverSeed, clientSeed, currentNonce++);

        if (-1 === numbers.indexOf(number)) {
          numbers.push(number);
        }
      }

      return numbers;
}
5.0 rating
Stake
Modern Bitcoin Casino & Sports betting platform. Enhanced privacy. Instant deposits & withdrawals. Provably fair slots & games. 130+ crypto currencies
4.8 rating
Roobet, crypto's fastest growing casino. Hop on in, chat to others and play exciting games - Come and join the fun!
4.8 rating
Rollbit
Innovative crypto gambling & trading platform. Win and trade Bitcoin and Ethereum. Provably fair games. 1000+ slots and live games. Instant withdrawals.
4.5 rating
Best crypto dice game on the web: instant BTC deposits & withdrawals, a bunch of bonuses, highest faucets, live support, lossback available for HR.
4.5 rating
ATM, Hashdice, Blackjack, Roulette and many other games are here based on provable fairness of the blockchain technology. Plus, not only having fun, you can be a banker. Join BC.Game now and Boost Cryptocurrencies here!
4.5 rating
Bitsler offers casino games like dice and roulette with bitcoin, ethereum, ripple and 17 other cryptocurrencies. Win part of our $1000000+ yearly gambling
4.3 rating
Bitcoin dice game established 2013. Provably fair. Lowest house edge. Instant deposits & withdrawals. Enhanced privacy. Register instantly & gamble Bitcoin
4.0 rating
One Of The Best Licensed Bitcoin Casino. Wide Game Selection: Slots, Dice, Roulette, BlackJack And More. Join Today And Receive Various Bonuses.
4.0 rating
WINDICE is the best dice game of cryptocurrency
4.0 rating
Bitvest is a Bitcoin Gambling site offering Dice, Plinko, Slots, Roulette, Keno, and Bitspin. Come and Win Big, or Invest with the house!
4.0 rating
Join Bitcasino Today ☆ Play with 24/7 LIVE Dealers, Slots, Dice and Table Games ☆ Register Anonymously.
3.8 rating
CryptoGames is a Bitcoin gambling site offering Dice, Blackjack, Roulette, Lottery, Poker, Plinko and Slot game to play also with Ethereum, Dogecoin & Litecoin.