This repository provides a scaffold to build applications on Hylé. Currently, this scaffold supports Risc0 contracts only.
The application follows a client-server architecture where:
- The frontend application sends operation requests to the server
- The server handles transaction crafting, sending, and proving
- All operations are processed through the Hylé network
To run the application, you'll need to start three components:
In your Hylé repository:
RISC0_DEV_MODE=1 cargo run -- --pg
In this repository:
RISC0_DEV_MODE=1 cargo run -p server
In this repository:
cd front && bun run dev
When making changes to the contracts, their ELF are automatically rebuilt. If you want to have reproducible builds with docker, remove the feature "nonreproducible" from server's Cargo.toml and build the contracts using:
cargo build -p contracts --features build --features all