Brilliantcrypto

Technical Specifications

Smart Contracts

Three types of ERC20/ERC721 Smart Contracts and four types of reward-determining Smart Contracts are primarily utilized within the service.

ERC20/ERC721

BRIL

The utility token (ERC20) deployed on PolygonPoS. It is used for gameplay rewards, restoring durability of pickaxes, and leveling up pickaxes. The supply limit is 1 billion tokens and Brilliantcrypto, the issuer, can issue them at its discretion.
Please refer here for information on the timing of discretionary issuance.

Pickaxe NFTs (Pickaxes)

A pickaxe is an NFT (ERC721) deployed on Polygon PoS and it is an essential item to play the game. When purchased in the in-game marketplace, it is stored in Brilliantcrypto's wallet with off-chain records of user ownership. When transferring to outside the game, it moves to the user's wallet address and its metadata updates to reflect in-game upgrades and results. By transferring from the in-game wallet integrated back to the Brilliantcrypto wallet, users can once again utilize it within the game (gameplay, leveling up, and sales in the in-game marketplace). For external markets, a Royalty Fee (ERC2981) is configured. It also incorporates the functionality of the Operator Filter Registry provided by OpenSea, enabling restrictions on transactions within specific markets.

Gemstones NFTs (Gemstones)

A gemstone is an NFT (ERC721) deployed on Ethereum. Gemstones obtained from gameplay rewards can be minted into NFTs at the player's discretion. Once minted, Brilliantcrypto issues it to the user's wallet. By executing a burn from the wallet connected to the game, players can once again use the gemstones within the game (such as selling them in the in-game marketplace). For external markets, a Royalty Fee (ERC2981) is configured. It also incorporates the functionality of the Operator Filter Registry provided by OpenSea, enabling restrictions on transactions within specific markets.

Smart Contracts For
Determination of Rewards

Logic For Determining Mine Reward Overview

This is a contract on the Polygon PoS blockchain used as reference to allow determination of the mine reward overview. It uses the mine ID and a block hash from Bitcoin.
The mine reward overview includes details such as the number of gemstones and their approximate size.
This contract is deployed on a per-region basis, embedding the probability information necessary to determine the mine reward overview for that region. Once deployed, it will not be changed. When regions are added, a new contract with dedicated logic for that region will be deployed. For more details, please refer to the “Mining Rewards & Gemstone Determination Logic” section.

Logic For Determining Gemstone Details

This is a contract on the Polygon PoS blockchain used as a reference, to allow determination of the details of gemstones mined in mines. It uses the mine seed, reward overview data and a block hash from Bitcoin.
The “gemstone details” refers to the quality, size, and cut of gemstones found in a mine.
This contract is deployed on a per-region basis, embedding the probability information necessary to determine detailed mine rewards for that region. Once deployed, it will not be changed. When regions or gemstones are added, a new contract with dedicated logic for that region/gemstones will be deployed. For more details on its use, please refer to the “Mining Rewards & Gemstone Determination Logic” section.

Recording of Mine Acquisition Data

This is a contract on the Polygon PoS blockchain for recording data regarding the mines acquired by players. For more details on its use, please refer to the “Mining Rewards & Gemstone Determination Logic” section.

Recording of Bitcoin Hash

This is a contract on the Polygon PoS blockchain for recording the Bitcoin block hash which will form part of the seed. For more details on its use, please refer to the “Mining Rewards & Gemstone Determination Logic” section.

Mining Rewards,
Gemstone Determination Logic

Below explains the process for determining the overview of the mine rewards, and gemstone details.

  • The Bitcoin block hash of a given time (e.g., end of UTC day) used for determining the mine reward overview is fixed (and saved on Polygon PoS).
  • The mine reward overview is determined using the mine ID and the Bitcoin block hash that was designated.
  • The period during which players can acquire mines begins.
  • The period during which players can acquire mines ends.
  • Record mine acquisition information on the blockchain.
  • The Bitcoin block hash of a given time (e.g., end of UTC day) used for determining the gemstone details is fixed (and saved on Polygon PoS).
  • Gemstone details are fixed.

Timeline Diagram

*The timeline diagram represents a single cycle. The selected final Bitcoin block hash of the day serves as the “seed” necessary for generating the mine reward overview. The same hash also serves as the “seed” necessary for determining the gemstone details for mines which have had their mine reward overview generated using the previous day’s block hash.

Determination of the Mine Reward Overview

  • The mine ID issued by Brilliantcrypto (will be published in game once the mine has been cleared)
  • The block hash generated by Bitcoin’s blockchain to be used as part of the seed for generating the mine reward overview*

The above two components are used as a seed for keccak256. Through this, the number of gemstones and size of the gemstones are decided. The result will not change regardless of how many times it's executed since there is no random element included in the generation. The result is also not influenced by the player’s actions.

*A sufficient amount of time will be left before fixing this hash to allow for block finality. (expecting at least 6 blocks later) Even in the event of a significant reorg in Bitcoin, Brilliantcrypto will not alter the fixed block hash recorded at this time.

(This logic is still under development so minor changes may be made to the above)

Recording Information About Acquisition of Mines on the Blockchain

The below data related to mine acquisition during the mine acquisition period will be CSV-formatted, hashed, and recorded on the blockchain.

  • A hashed representation of the mine ID
  • The ID of the pickaxe used to acquire the mine

By recording this data on the blockchain, it ensures that mines can only be acquired before the details of the gemstones are determined.

(This logic is still under development so minor changes may be made to the above)

Determination of Gemstone Details

  • The mine reward overview
  • The mine ID issued by Brilliantcrypto (will be published in game once the mine has been cleared)
  • The block hash generated by Bitcoin’s blockchain to be used as part of the seed for generating the gemstone details*

The above three components are used as a seed for keccak256. Through this, the gemstone quality, size, and cut style are decided. The result will not change regardless of how many times it's executed since there is no random element included in the generation. The result is also not influenced by the player’s actions.

*A sufficient amount of time will be left before fixing this hash to allow for block finality. (expecting at least 6 blocks later) Even in the event of a significant reorg in Bitcoin, Brilliantcrypto will not alter the fixed block hash recorded at this time.

(This logic is still under development so minor changes may be made to the above)