This repository provides a scaffold to build applications on the Hyli network using Risc0 contracts.
The application follows a client-server model:
- The frontend sends operation requests to the server.
- The server handles transaction creation, proving, and submission.
- All interactions are executed through the Hyli network.
Currently, only Risc0 contracts are supported.
- Clone the Hyli node repository
- Clone this repository
- Install RISC-Zero
- Install Docker
You can run the docker node and the wallet using
docker-compose up -d
This will launch a development-mode node and the wallet server and ui.
From the root of this repository:
RISC0_DEV_MODE=1 cargo run -p server
This starts the backend service, which handles contract interactions and proofs.
To navigate to the frontend directory and start the development server:
cd front
bun install
bun run dev
This runs the web interface for interacting with the Hyli network.
Contract ELF files are rebuilt automatically when changes are made.
For reproducible builds using Docker:
cargo build -p contracts --features build --features all
This ensures builds are consistent across environments.
If you want to build in non-reproducible mode (to test contract compilation):
cargo build -p contracts --features build --features all --features nonreproducible
For more details, refer to the Hyli documentation.