After we complete the public blockchain, we will focus on developing the TrustDB for game asset storage, game token distribution, and game rules notarization. Traditional centralized storage is efficient, but it is not credible; decentralized storage can apply trusted storage, but it reduces efficiency. The TrustDB that we create for the game will use a hybrid solution. It separates the data blockchain from the public blockchain and at the same time it is compatible with a centralized database.
4.1. Overall architecture
The overall architecture of a trusted database solution is divided into three layers:
- The first layer, the AllGameCoin public blockchain provides a foundation of trust and economic for system operation.
- The second layer, the data layer provides decentralized and centralized storage of large amounts of data, and stores trusted flag in the public blockchain.
- The third layer is about the application layer. On the basis of the public and data layers, it will create high-use, scalable applications, such as: store game asset, release game token, identify game rules and so on.
4.2. The AllGameCoin Public Blockchain
The AllGameCoin public blockchain only stores XAGC transactions and data layer trusted flag. It can effectively avoid the public blockchian’s data becoming huge and difficult for ordinary users to use, and can also avoid the fast access of the data layer by the public blockchain’s confirmation time.
4.3. The Data Layer
4.3.1. Data Blockchain
A separate, high-performance data blockchain dedicated to the storage of data. The data blockchain will not have its own coins and the incentive system will use XAGC as a reward. The data blockchain will use the super nodes. We will openly campaign 100 super nodes globally as nodes of the data blockchain with a target of one million TPS. The data of the data blockchain that has been authenticated by the super node will be packaged once every 2 minutes and stored in the AllGameCoin public chain for secondary authentication.
Developers will be able to use their own database, and XAGC will store the flag of the data changes. It will support relational databases such as MySQL, Oracle, MS SQL Server.
4.4. Application Layer
The application layer abstracts the blockchain application scenarios in various typical games. It provides basic capabilities and implementation frameworks. So developers can easily implement business logic in the blockchain using the application layer.
4.4.1. Game Asset Storage
Developers can map the assets that off the blockchain to the blockchain. After the assets are chained, the transfer, splitting, and destruction of the assets require strict control of the account with public and private key system. All operations will have signature verification, and both parties will stay. The traces are not erased. The operation of the game assets will consume a certain amount of XAGC, and the amount of XAGC consumed is determined by the free market.
4.4.2. Game Token Release
Developers can quickly release game tokens with blockchain technology through this application, and token transactions consume a certain amount of XAGC. Developers can easily implement token release, token transactions, and token inquiries through it. It can exchange game tokens and XAGC through the free market exchanged.
4.4.3. Game Rules Verification
The blockchain plays an indelible and publicized ability in the verification of rules. Game rule verification allows developers to store rules that require assurance in the blockchain. The two-level verification that is unique to the AllGameCoin System makes the assurance more credible.