sudo apt update && sudo apt upgrade -ycurl -sSL https://raw.githubusercontent.com/soundnesslabs/soundness-layer/main/soundnessup/install | bashcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs/ | shsource ~/.bashrcsoundnessup installsoundnessup updatesoundness-cli generate-key --name my-keyIf you saved your mnemonic previously, you can import it to key_store.json by using following command:
soundness-cli import-key --name <name> --mnemonic "<mnemonic>"REPLACE <name> WITH KEY NAME OF YOUR CHOICE
REPLACE <mnemonic> WITH YOUR SEED PHRASE
Now you can tell Soundness you won the game! Here's what the command looks like:
soundness-cli send \
--proof-file <your-proof-blob-id> \
--game <game-name> \
--key-name <your-key-name> \
--proving-system ligetron \
--payload '<json-payload>'--proof-file (-p): The unique Walrus Blob ID for your proof, which you receive after winning a game.
--game (-g): The name of the game you played (e.g., 8queens or tictactoe).
--key-name (-k): The name you chose for your key in Step 2.
--proving-system (-s): The ZK proving system. For our current testnet games, this is ligetron.
--payload (-d): A JSON string with the specific inputs required to verify your Ligetron proof.
To send a proof and ELF Program file using local file paths:
soundness-cli send --proof-file path/to/proof.proof --elf-file path/to/program.elf --key-name my-keyTo send a proof and ELF Program file using Walrus Blob IDs (when files are already stored in Walrus):
soundness-cli send --proof-file <proof-walrus-blob-id> --elf-file <elf-program-walrus-blob-id> --key-name my-keyYou can also mix file paths and Walrus Blob IDs:
# Proof from file, ELF from Walrus storage
soundness-cli send --proof-file path/to/proof.proof --elf-file <walrus-blob-id> --key-name my-key
# Proof from Walrus storage, ELF from file
soundness-cli send --proof-file <walrus-blob-id> --elf-file path/to/program.elf --key-name my-keyYou can specify the proving system to use:
soundness-cli send --proof-file <path-or-blob-id> --elf-file <path-or-blob-id> --key-name my-key --proving-system <sp1||ligetron||risc0>➖ Join Discord (https://discord.gg/soundnesslabs)
##✅ Done!