Skip to content

Files

Latest commit

 

History

History
21 lines (12 loc) · 981 Bytes

File metadata and controls

21 lines (12 loc) · 981 Bytes

Sample Client Helper

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.

Setup

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, run cargo 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.

Running the server

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.

Testing the server

To test the server, run cargo test --release or visit the test page at the server's URL.