This folder contains a sample Client Helper. This is a server that can be deployed locally or as a web service that the browser extension uses to offload expensive computations and storage.
The Crescent library must have been built and the ZK setup must have been run before setting up the server, specifically:
- From
../../circuit_setup/scripts
, run./run_setup.sh rs256
, and - From
../../creds
, runcargo run --bin crescent --release --features print-trace zksetup --name rs256
Then, call the setup script ./setup_client_helper.sh
.
To build the server, run cargo build --release
.
To start the server, run cargo run --release
. By default, the server will listen on http://localhost:8003
; this can be modified by changing the port
variable in the Rocket.toml file.
To test the server, run cargo test --release
or visit the test page at the server's URL.