You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 25, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/getting-started/local.md
+18-16Lines changed: 18 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,13 +27,9 @@ You have two options for deploying the servers locally:
27
27
28
28
4. Start the servers:
29
29
```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
36
31
```
32
+
Shutdown the servers with `Ctrl+C`.
37
33
38
34
### 1.2. Or with Docker
39
35
@@ -54,31 +50,37 @@ Alternatively, you can use Docker for a simpler deployment experience, though it
54
50
docker-compose down
55
51
```
56
52
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:
63
55
```bash
64
56
./setup_env.sh --client
65
57
```
66
58
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:
68
65
```bash
69
66
poetry run client-share-data <eth-address><binance-api-key><binance-api-secret>
70
67
```
71
68
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.
72
69
73
70
74
-
## 3. Querying Results
71
+
### 2.2. Querying Results
75
72
76
-
Query with Client CLI
73
+
Query statistical results.
77
74
```bash
78
75
poetry run client-query
79
76
```
80
77
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"}'
0 commit comments