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

Commit 5f5f969

Browse files
authored
Merge pull request #15 from ZKStats/fix-b
Fix-B
2 parents afe2baf + 8e90502 commit 5f5f969

File tree

1 file changed

+10
-76
lines changed
  • docs/getting-started/deployment/servers/remote

1 file changed

+10
-76
lines changed

docs/getting-started/deployment/servers/remote/manually.md

Lines changed: 10 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -24,44 +24,12 @@ Follow the steps below on each server before deploying:
2424
cd mpc-demo-infra
2525
```
2626

27-
1. Install non-Python dependencies
28-
1. Install `openssl`
29-
- `Ubuntu`:
30-
```bash
31-
sudo apt install -y openssl
32-
```
33-
34-
- `macOS`:
35-
```bash
36-
brew install openssl
37-
```
38-
39-
1. Install other dependencies:
40-
```bash
41-
./setup_env.sh
42-
```
43-
44-
1. Install Python dependencies
45-
```bash
46-
poetry install
47-
```
27+
1. Set up the environment:
28+
```bash
29+
./setup_env.sh
30+
```
4831

4932
## Deploying the Coordination Server
50-
Ensure that you are at the repository root before proceeding.
51-
52-
1. Install Rust
53-
```bash
54-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
55-
```
56-
57-
1. Install `binance_verifier`
58-
```bash
59-
ln -s tlsn ..
60-
pushd ../tlsn/tlsn
61-
cargo build --release --example binance_verifier
62-
popd
63-
```
64-
6533
1. Create the configuration file at the repository root:
6634
- `.env.coord`
6735
```
@@ -90,36 +58,14 @@ Ensure that you are at the repository root before proceeding.
9058
1. Rename the private key and certificate files of your domain as `privkey.pem` and `fullchain.pem` respectively and add them to `mpc_demo_infra/ssl_certs` directory.
9159
9260
1. Start the server
61+
Ensure that you are at the repository root before proceeding.
62+
9363
```bash
9464
poetry run coord-run
9565
```
9666

9767
## Deploying Computation Party Server instances
9868
Perform the following steps on each of the three servers running a Computation Party Server instance.
99-
Ensure that you are at the repository root before proceeding.
100-
101-
1. Install Rust
102-
```bash
103-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
104-
```
105-
106-
1. Install `binance_verifier`
107-
```bash
108-
ln -s tlsn ..
109-
pushd ../tlsn/tlsn
110-
cargo build --release --example binance_verifier
111-
popd
112-
```
113-
114-
1. Setup MP-SPDZ
115-
```bash
116-
ln -s MP-SPDZ ..
117-
pushd ../MP-SPDZ
118-
cp ../mpc-demo-infra/mpc_demo_infra/computation_party_server/docker/CONFIG.mine .
119-
./Scripts/setup-ssl.sh 3
120-
make -j$(nproc) malicious-rep-ring-party.x
121-
popd
122-
```
12369

12470
1. Create the configuration file at the repository root:
12571
- `.env.party`
@@ -148,15 +94,15 @@ Ensure that you are at the repository root before proceeding.
14894
1. Rename the private key and certificate files of your domain as `privkey.pem` and `fullchain.pem` respectively and add them to `mpc_demo_infra/ssl_certs` directory.
14995
15096
1. Start the `Computation Party Server`
97+
Ensure that you are at the repository root before proceeding.
98+
15199
In the command below, replace `%PARTY_ID%` with the party ID assigned to the server (0, 1, or 2) and replace `%PORT%` with 8006, 8007, or 8008 for Party 0, Party 1, and Party 2, respectively.
152100
153101
```bash
154102
PORT=%PORT% PARTY_ID=%PARTY_ID% poetry run party-run
155103
```
156104

157105
## Deploying the Data Consumer API Server
158-
Ensure that you are at the repository root before proceeding.
159-
160106
1. Create the configuration file at the repository root:
161107
- `.env.consumer_api`
162108
```
@@ -183,27 +129,15 @@ Ensure that you are at the repository root before proceeding.
183129
1. Rename the private key and certificate files of your domain as `privkey.pem` and `fullchain.pem` respectively and add them to `mpc_demo_infra/ssl_certs` directory.
184130
185131
1. Start the server
132+
Ensure that you are at the repository root before proceeding.
133+
186134
```bash
187135
poetry run consumet-api-run
188136
```
189137

190138
## Deploying the Notary Server
191139
Ensure that you are at the repository root before proceeding.
192140

193-
1. Install Rust
194-
```bash
195-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
196-
```
197-
198-
1. Install the `Notary Server``
199-
```bash
200-
ln -s tlsn ..
201-
pushd ../tlsn/notary/server
202-
cargo build --release
203-
cp -R fixture ../target/release
204-
popd
205-
```
206-
207141
1. Generate self-signed certificate
208142
Replace `%NOTARY_IP%` below with the IP address of the server on which the Notary Server runs.
209143

0 commit comments

Comments
 (0)