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 -- --pgIn this repository:
RISC0_DEV_MODE=1 cargo run -p serverIn this repository:
cd front && bun run devWhen 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 allFor wallet account registration and management, see the script/ folder which contains:
- Wallet Registration Script: A standalone Node.js script for registering wallet accounts
- Examples: Usage examples and batch registration scripts
- Configuration: Environment-specific configuration templates
cd script
npm install
node hyli-wallet.js <username> <password> <inviteCode>For detailed documentation, see script/README.md.