Cocos-BCX is a public blockchain platform aiming to create a complete run-time environment for games with multi-game system compatibility, providing game developers a user-friendly platform for blockchain game development.
- Cocos Blockchain Expedition (“Cocos-BCX”) aims to build a full-stack solution for the development of games and game economies on the blockchain.
- CocosChain is a public blockchain using a version of delegated proof-of-stake (“DPoS”) consensus mechanism, where all active witnesses share the same scheduled block generation probability in order to ensure consistancy and fairness.
- The project has created NHAS-1808, a proprietary token standard for fungible and non-fungible digital assets.
KEY FEATURES & HIGHLIGHTS
- CocosChain with features including game-centric data structure, multi-chain interoperability, asset-contract compartmentalization, use of light nodes, and many more.
- Integrated runtime environment for games with multi-system compatibility and blockchain interoperability.
- Exchange gateway supporting cross-chain transactions for homogeneous and non-homogeneous assets.
- Cheat-proof verification mechanism with dynamic encryption, concealed process variables and environment authentication.
WHAT IS COCOS-BCX?
In addition, Cocos-BCX aspires to bring users complete control and transparency over in-game virtual assets.
Cocos-BCX is building a development environment with gaming experience and game economics in mind. Game developers can easily migrate conventional games to the blockchain without the need to learn blockchain programming languages. The developers may also use the functions and components provided by Cocos-BCX or third-party teams to build game economy infrastructures such as non-fungible token ("NFT") exchanges, pawn shops and banks. Cocos-BCX aims to make more games available to players, and allow players to better manage their virtual assets.
Cocos-BCX enables inter-chain and inter-domain asset exchange by providing multi-chain compatible asset standards and cross-domain gateways. Developers will have the flexibility to deploy games on blockchains which best facilitate their in-game economy, and make their assets universally transferable. Users can also benefit from the freedom of moving assets across different chains that best serve their purposes such as trading and storage.
BLOCKCHAIN & NETWORK DATA
Cocos-BCX components are designed specifically to improve the incorporation of game content and decentralized economics. The following chart is a high-level demonstration of the Cocos-BCX system architecture.
To simplify the development process, Cocos-BCX has designed an integrated run-time environment for various Apps and interoperable interfaces. The runtime environment is compatible with Android, iOS, PC Web, mobile H5 and other systems and environments. Combined with Cocos Creator, it simplifies the connection between game programs and the blockchain, making interactions transparent to developers, allowing traditional game developers to develop or migrate blockchain games with minimum effort.
Core features of CocosChain include:
- Full blockchain interoperable interfaces
- Transparent and downward inheritance
- Packaged atomic operations
- Compatible with multiple operating systems
In Cocos-BCX, light nodes provide an environment capable of interoperation with the chain. Different from full nodes, light nodes do not synchronize the entire blockchain state nor participate in voting and block production. Light nodes only synchronize necessary contract information and environmental data. This design aims to significantly reduce the amount of data and time for synchronization and enable the operation of on-chain game software. Game contracts can be executed via the light nodes continually over time, independent of the block period and block size.
Worldview and Cross-World Asset Transfer
The worldview of a game is a series of identifications associated to its story narratives. Assets under the same worldview share common properties, application scenarios, circulation rules and registration of assets. Assets can be migrated and circulated in different games under the same worldview by paying a migration fee.
The Smithy System
The Smithy is a group of accounts with the right to generate game props, equipments, and contracts. As one of the core functions of all games, the Smithy can be managed by game makers or by game guilds and designer studios. With the Smithy, players can convert in-game coins and materials into props, or purchase items directly. All transaction information between the player and the Smithy will be recorded on-chain.
Asset Permission System
Under NHAS-1808, the ownership and the rights of use of an asset is separated, by which developers can plot complex economic activities (such as borrowing and pledging tokens) that can significantly enhance the gaming experience.
The consensus layer of Cocos-BCX Testnet adopts the DPoS consensus algorithm, where stakeholders elect all scheduled witnesses by voting. The scheduled witnesses are collectively referred to as active witnesses. In order for the network to function properly, the Cocos-BCX Testnet requires a minimum of 11 and a maximum of 101 active witnesses. They share the same scheduled block probability in the witness-scheduling algorithm, which ensures that their block probabilities and rewards will be consistent.
The block interval is set to 3 seconds, and is considered valid when more than 70% of the nodes complete production. If the scheduled witness fails to produce blocks, no block is generated in that time slot. The network waits for the next time slot and picks the next scheduled witness to produce blocks. The witness voting is set to take place every 12 hours. The team stated that the system parameters are to be further tested, validated and modified after the launch of Mainnet.
Smart Contract System
Proprietary Non-Homogenous Asset Standard 1808
NHAS-1808, the token standard of Cocos-BCX, uses a unique data structure that enables the creation, exchange and modification of tokens with richer properties across different applications and chain domains.
Cocos-BCX applies 5 modules to prevent cheating activities from block producers or third parties:
- Broadcast data that is dynamically encrypted with block height, time stamps and other noise.
- Prevent unidentified or self-identified nodes to join the network.
- Hide the process variables in one contract operation to be executed in the node RAM, and only output the results.
- Verify the ID and permission of the contract callers.
- Execute contracts in a Trusted Execution Environment where block producers and developers are unauthorized to operate.