B

Base Ball Game

We use the Leo language to encrypt the results of baseball games, and compare them using ZK (Zero-Knowledge) technology.

The problem Base Ball Game solves

Problems

The results of games can sometimes be intercepted through simple hacking techniques like sniffing. Such unfair games can cause us to lose interest, or we might suffer from lost game points or financial disadvantages.

Solutions

We manage the game's result and input values privately and compare them using ZK (Zero-Knowledge) proof technology. By utilizing more advanced security technologies, we can enhance the reliability of the game. Users can enjoy the game without worrying about unfairness or suffering disadvantages.

Challenges I ran into

Problems

I couldn't find a way to receive a callback for the result values or transaction IDs when calling smart contracts on-chain.

Solutions

Due to this issue, thinking that it wouldn't be possible to support interactive play in-game, I opted for executing smart contracts in a local environment.

Future Plans

If the above-mentioned issue is resolved, I plan to update the program anew.

Technologies used

Discussion