Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 85024dc

Browse files
committed
run_all_servers.sh
1 parent 173bdb1 commit 85024dc

1 file changed

Lines changed: 18 additions & 16 deletions

File tree

docs/getting-started/local.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,9 @@ You have two options for deploying the servers locally:
2727

2828
4. Start the servers:
2929
```bash
30-
./start-all-servers.sh
31-
```
32-
33-
5. Shutdown the servers:
34-
```bash
35-
./shutdown-all-servers.sh
30+
./run_all_servers.sh
3631
```
32+
Shutdown the servers with `Ctrl+C`.
3733

3834
### 1.2. Or with Docker
3935

@@ -54,31 +50,37 @@ Alternatively, you can use Docker for a simpler deployment experience, though it
5450
docker-compose down
5551
```
5652

57-
58-
## 2. Sharing ETH Balance
59-
60-
1. Get the Binance API key and secret, following the instructions in [Get Your Binance API Key](https://github.com/ZKStats/mpc-demo-infra/blob/main/mpc_demo_infra/client_cli/docker/README.md#step-1-get-your-binance-api-key)
61-
62-
2. Set up Client:
53+
## 2. Data Providers and Consumer
54+
1. Set up client env if you haven't done so:
6355
```bash
6456
./setup_env.sh --client
6557
```
6658

67-
3. Run the client CLI:
59+
60+
### 2.1. Sharing ETH Balance
61+
62+
1. Get the Binance API key and secret, following the instructions in [Get Your Binance API Key](https://github.com/ZKStats/mpc-demo-infra/blob/main/mpc_demo_infra/client_cli/docker/README.md#step-1-get-your-binance-api-key)
63+
64+
2. Run the client CLI:
6865
```bash
6966
poetry run client-share-data <eth-address> <binance-api-key> <binance-api-secret>
7067
```
7168
where `<eth-address>` can be any random Ethereum address, `<binance-api-key>` is your Binance API key, `<binance-api-secret>` is your Binance API secret.
7269

7370

74-
## 3. Querying Results
71+
### 2.2. Querying Results
7572

76-
Query with Client CLI
73+
Query statistical results.
7774
```bash
7875
poetry run client-query
7976
```
8077

81-
or query with Client API:
78+
> Please make sure you have run `client-share-data` first, otherwise you will get an error like
79+
> ```bash
80+
> 2025-02-27 17:36:46 [ERROR] Failed to query computation: Failed to query computation: response.status=400, await response.text()='{"detail":"No MPC session found"}'
81+
> ```
82+
83+
You can also query results with Client API:
8284
```bash
8385
curl http://127.0.0.1:8004/query-computation
8486
```

0 commit comments

Comments
 (0)