Skip to main content
Provably Fair

Learn how to verify your mystery box outcomes to ensure fairness!

Updated over a week ago

Overview

Provably fair is a technology-based algorithm that can be analyzed and tested for fairness. In plain English, this system allows you to cryptographically verify that each and every item you open from a mystery box was randomly selected by an algorithm.

How it works

Each box open will generate a number between 0 and 999,999 to select an item. This number correlates to ranges that determine a specific item.

To generate this number, we use four values:

  • Client Seed

  • Server Seed

  • Nonce

  • Salt

Client Seed

Your client seed is a value you can change at any time by clicking the "provably fair" button on any box page. If you ever want to "mix up" your random generation, give yourself a new client seed. We never touch this value!

Server Seed

The server seed is a secret phrase saved in our backend used to generate your random open. This phrase is not displayed at the time of opening. Instead, we display a "hash" of the server seed. The actual server seed is revealed every 24 hours.

You can think of a hash as a scrambling function that always produces the same result. By giving you the hash before you open a box, then revealing the server seed later, you can verify that the server seed we revealed was actual used.

Nonce

This is a number attached to each user's account. This number iterates every box open so it is never the same between multiple opens.

Salt

This is a permanent random phrase attached to your account to add extra randomness.

Putting it all together

We combine all of these values to generate a cryptographic hex string. We then convert that string to a number which becomes your result "ticket" that decides your item.

Verify Provably Fair Values

Step 1

Go to the box history page in your account and select view on a specific box open you'd like to verify.

Step 2

Scroll down to where the server seed is displayed. If it shows "The server seed has not been revealed yet." then you will need to wait up to 24 hours to verify your open.

Step 3

Visit this code sandbox and copy your client seed, server seed, nonce and salt into the variable definitions in the code as shown below.

Step 4

View the console window if the code sandbox below.

The console will verify the server hash provided matches the server seed of the open. It will also verify the result ticket.

Step 5

Go back to the box open details, and scroll all the way down to the outcome section. The number displayed here should match the number generated in the code sandbox.

Did this answer your question?