CSD: Technical side of our NFTs

csd
Celebrity Smack Down
3 min readJan 12, 2022

--

Some changes have been made regarding card stats. Now, every card will have different stats depending on its rarity, that will be determined randomly at the moment the card is minted. But we wanted to take this opportunity to explain our NFTs a little more in detail.

You may be wondering what guarantees the randomness of your card statistics …

We added a new pop up that will appear when you select your NFTs, this will show you its stats and a glance of the tweet linked to it, but it also shows the entropy hash of your NFT which determines randomly the stats of the card.

If you want to see more information about your NFTs on the blockchain you can follow these steps:

  1. Go to your Payment history

2. There you will see the Nervos Network logo on the right side

3. Click there! It will take you to the Nervos Network Explorer, showing you the transaction. The last three items are the cards you minted

4. Clicking on the “Cell Info” option and “Data” will show you the metadata codified in hexadecimal of your NFT

5. Copy this hash and use a hex to ASCII text converter (You might have to delete the first 0 and the x)

Here you can see all the codified data of your NFT, including the entropy hash that is generated at the moment you minted it, which is completely random and unique!

But what is an entropy hash, and how do we use it?

The entropy is 64 digits hash represented by 16 hexadecimal digits. It is generated when the card is created.

To assign the random stats to the card, the hash is divided by 3 subsequences of 5 digits. Each subsequence is transformed to a number between [0,1] separately, transforming it to its corresponding number in decimal scale and dividing by the maximum number of possibilities for a 5 digits sequence (2 ^ 20).

Take this for example:

The obtained results are used to assign a value within the ranges established for each class of points and based on the rarity of the card. This way the first subsequence is used for life, the second for attack, and the last for defense.

Let the game begin!

--

--