This repo contains examples demonstrating how to create wasm applications using zkc-sdk.
-
Hello World
This example demonstrates how to compile code written in TypeScript/C/Rust into WebAssembly, and then how to load the Wasm image and call exported functions in a Web Application by utilizing zkc-sdk.
Check the hello-world.md for more details.
-
ZK Hello World
This example guides you through initializing an instance of the WebAssembly module, calling its functions, and ensuring the correct execution of the function by generating a zero knowledge proof and verifying the zkProof on-chain using the zkc-sdk.
Check the zk-hello-world.md for more details.
-
Dice Game
For a more advanced challenge, we'll create a complete ZKCross web application, which involves compiling and running the wasm file, creating and deploying the wasm application, and submitting the proof for deployment on the chain.
Check the dice-game.md for more details.
-
Front end
- Language: TypeScript v5
- Component engine: React v18
- CSS utility class: Bootstrap v5
- Package management tool: pnpm
- CI / CD: GitHub Actions + Vercel
-
WASM