This is a Boilerplate V-App.
- app contains the Risc-V app for Vanadium.
- client folder contains the client of the app, and a simple CLI interface.
The client is a library crate (see lib.rs), but it also has a test executable (main.rs) to interact with the app from the command line.
If you installed just, simply running just from the app folder will build both the
Risc-V and the native binaries.
In order to build the app for the Risc-V target, enter the app folder and run:
cargo build --release --target=riscv32imac-unknown-none-elfIn order to build the app for the native target, enter the app folder and run:
cargo build --releaseMake sure you built the V-App for the native target.
On a terminal in the app folder, simply run:
cargo runOn a different terminal in the client folder, run:
cargo run -- --nativeNote: you can customize the hostname and port of the app by setting the VAPP_ADDRESS environment variable.
Make sure you built the V-App for the RISC-V target.
Launch Vanadium on speculos. Then execute:
From the client folder
cargo runIf you want to run the V-app on a real device, launch the Vanadium app on the device, then execute instead:
cargo run -- --hid