How It Works
Buy Game and Register Device

Buy the Game Token and Register the Device

The Game Token is a non-transfarrable fungible Mina token that represents ownership of a game. The Game Token is used to track the ownership of the game and to facilitate the transfer of ownership.

To buy the Game Token, gamers can use the mintGameToken method in the Game Token smart contract. This method takes recipient's public key as an argument and mints a Game Token for the recipient for the price of the game in Mina.

This process is handled by the DRM Mina web application. The user can buy the Game Token by clicking the "Buy Game" button on the game page. The user will be prompted to sign the transaction using their Mina wallet. Once the transaction is confirmed, user can see corresponding game in their library and Mina wallet.

Owners of the Game Token can register their device to play the game. The registration process is handled by the DRM Mina web application. The user can register their device after redirecting to game-details page by clicking the "Visit Store" button on the DRM Mina Desktop Client (opens in a new tab).

DRM Mina Desktop Client collect device identifiers and direct user to the registration page. When user click the "Register Device" button, the DRM Mina web application will create a device proof into user's browser and send it to the Mina blockchain. This proof not only ensures the confidentiality of device information, but also runs some checks to make sure that this information meets certain conditions.

After the registration is complete, user can see registered device hash in the game-details page. Now user can download the game and start playing.

Please also check the Supported Platforms section for the platform specific setup instructions.