ZKP in Full-Chain Games: Opportunities and Challenges Coexist

robot
Abstract generation in progress

The Application of zk-SNARKs in On-Chain Games: Taking Elimination Games as an Example

In the development process of on-chain games, balancing game experience with blockchain features has always been a challenge. Taking a certain on-chain elimination game as an example, players need to eliminate all elements on the board within 4 minutes to earn token rewards. However, due to the requirement of interacting with the blockchain for each operation, the game experience is significantly diminished.

To address this issue, developers are considering introducing zk-SNARKs technology (ZKP). The core idea is to decouple the game process while ensuring no risk of cheating. The specific plan is to generate a ZKP for each operation in the game, with each subsequent step forming a self-contained ZKP chain based on the previous step, and finally sending the ZKP of the last step to the chain for verification.

Using PopCraft as an example, explaining the role of zk-SNARKs in on-chain games

However, this plan faces many challenges in the process of actual implementation:

  1. Integrity verification of the game process: It is necessary to not only generate zk-SNARKs for the results but also to verify the entire game process.

  2. Technical difficulties in the gradual generation of ZKP: Each step of ZKP relies on the previous step, and there is uncertainty in how to ensure continuity and correctness.

  3. Public Data Processing: The data of this game is public, and using zk-SNARKs for information hiding seems unnecessary.

  4. Game item consumption issue: It remains a challenge to handle the Token transfer under the ZKP framework.

  5. The data hiding feature of zk-SNARKs: For game scenarios where data does not need to be hidden, it actually increases implementation complexity.

After in-depth analysis, we found that ZKP technology may not be the best choice in such games. Instead, the key lies in finding a way to ensure that every step from the start to the end of the game is free from cheating, while only verifying the final result on-chain.

Currently, it seems that ZKP technology is more suitable for application in two types of scenarios in the gaming field:

  1. Information hiding in incomplete information games, such as certain strategy card games.

  2. Proof of single-step game results, such as lotteries, guessing numbers, and other simple games.

For blockchain game developers, when considering the introduction of zk-SNARKs technology, it is necessary to weigh the advantages it brings against the potential increased complexity. In some cases, seeking other optimization solutions may be more appropriate. With the continuous development of technology, it is believed that more innovative solutions will emerge in the future, providing a better experience for blockchain games.

Taking PopCraft as an example, explaining the role of zk-SNARKs in on-chain games

TOKEN-0.37%
View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • 7
  • Share
Comment
0/400
OnchainFortuneTellervip
· 08-03 23:28
Does this game take 4 minutes to burn one block? That's too laggy!
View OriginalReply0
BrokenYieldvip
· 08-01 11:44
lmao another zk bandwagon... seen this movie before in defi. spoiler: it ends with exploit szn
Reply0
WalletManagervip
· 08-01 04:10
The game crashed and you still don't want anyone to know? This zkp trick is really clever, but the gas is ridiculously expensive.
View OriginalReply0
DarkPoolWatchervip
· 08-01 04:10
So you're playing off-chain again, huh? I've never seen a real chain game.
View OriginalReply0
GasGuruvip
· 08-01 04:10
It's hard to deal with, the costs of zkps on-chain are so high.
View OriginalReply0
MEVSandwichMakervip
· 08-01 04:04
Who can stand 4 minutes of lag...
View OriginalReply0
AirdropHarvestervip
· 08-01 03:48
Ah, four minutes is too short, right?
View OriginalReply0
Trade Crypto Anywhere Anytime
qrCode
Scan to download Gate app
Community
English
  • 简体中文
  • English
  • Tiếng Việt
  • 繁體中文
  • Español
  • Русский
  • Français (Afrique)
  • Português (Portugal)
  • Bahasa Indonesia
  • 日本語
  • بالعربية
  • Українська
  • Português (Brasil)