Build & Test Gameplay
Export and validate the gameplay for client & prover
Last updated
Export and validate the gameplay for client & prover
Last updated
This will open a terminal prompt for playing the game.
All states and inputs are in form of u64
Make sure you have installed & built
The <path-cli> is the path to zkwasm-cli. It's located in zkwasm/target/debug/zkwasm-cli
after building the zkwasm.
Example
In the example above, we set the initial state to total_step
to 10 and current_position
to 1. The order correspond to how the initialize_game
function is written.
This step will publish the image to a cloud prover. Currently the cloud prover is freely provided by Spin and no credential is needed.
Image Commitment, Image MD5 Hash will be printed
Save the Image Commitments, MD5 hashes, and Game ID.