Run the scaffold locally
Prerequisites
- Install Rust (you'll need
rustup
and Cargo). - Install openssl-dev (e.g.
apt install openssl-dev
orcargo add openssl
). - Bun (or npm/yarn)
- Install necessary provers:
- RISC Zero (used for the scaffold example)
- SP1
- Noir
Run a node locally
Clone the Hyli node.
Run:
git checkout v0.13.1 # 0.13.1 is the latest stable version
rm -rf data_node && RISC0_DEV_MODE=true SP1_PROVER=mock cargo run -- --pg
Variants:
- Without indexer, for a faster development loop:
HYLE_RUN_INDEXER=false cargo run
- With SP1 verifier:
cargo run -F sp1
Open the Hyli explorer and select localhost
in the upper-right corner.
For alternative setups and custom configurations, check out the local node reference page.
Run the wallet
Clone the Wallet repository.
Before taking any action, wait until the node has successfully launched.
Run:
git checkout v0.1.2 # 0.1.2 is the latest stable version
rm -rf data 2>/dev/null || true && clear && RISC0_DEV_MODE=true SP1_PROVER=mock cargo run --bin server --release -- -m -a -w
Run the app scaffold
Clone the Hyli app scaffold.
Start the server:
rm -rf data 2>/dev/null || true && clear && RISC0_DEV_MODE=true SP1_PROVER=mock cargo run --bin server --release
Start the scaffold's UI:
Everything is now functional. We can now explore the scaffold!