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

Commit cf72218

Browse files
authored
Merge pull request #10 from ZKStats/fix-6
Add dependencies and configuration
2 parents b8f43d5 + aad0c27 commit cf72218

File tree

5 files changed

+47
-1
lines changed

5 files changed

+47
-1
lines changed

docs/dependencies.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Dependencies
2+
3+
- python 3
4+
- poetry
5+
- cargo
6+
- [TLSN](https://github.com/ZKStats/tlsn)
7+
- branch: `mpspdz-compat`
8+
- clone it as `../tlsn`
9+
- [MP-SPDZ](https://github.com/ZKStats/MP-SPDZ) (only required for computation party server)
10+
- branch: `demo_client`
11+
- clone it as `../MP-SPDZ`
12+
- need to add `MOD = -DGFP_MOD_SZ=5 -DRING_SIZE=257` to `CONFIG.mine`
13+
- install: `make setup`
14+
- build vm: `make replicated-ring-party.x`
15+

docs/getting-started/deployment/client.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "Client"
3+
sidebar_position: 1
34
---
45

56
# Client CLI Deployment
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
sidebar_position: 3
3+
---
4+
5+
# Configuration
6+
7+
## Default Configuration
8+
- [Coordination Server](https://github.com/exfinen/mpc-demo-infra/blob/main/mpc_demo_infra/coordination_server/config.py)
9+
- [Computation Party Server](https://github.com/exfinen/mpc-demo-infra/blob/main/mpc_demo_infra/computation_party_server/config.py)
10+
- [Data Consumer API Server](https://github.com/exfinen/mpc-demo-infra/blob/main/mpc_demo_infra/data_consumer_api/config.py)
11+
- [Client CLI](https://github.com/exfinen/mpc-demo-infra/blob/main/mpc_demo_infra/client_cli/config.py)
12+
13+
## Overriding Default Configuration
14+
You can create the following configuration files at the repository root to override the default configuration.
15+
16+
| Server | Configuration File Name |
17+
| --- | --- |
18+
| Coordination Server | `.env.coord` |
19+
| Computation Party Server | `.env.party` |
20+
| Data Consumer API Server | `.env.consumer_api` |
21+
| Client CLI | `.env.client_cli` |
22+
23+
24+
### Example Configuration Files
25+
- [.env.coord](https://github.com/exfinen/mpc-demo-infra/blob/main/.env.coord.example)
26+
- [.env.party](https://github.com/exfinen/mpc-demo-infra/blob/main/.env.party.example)
27+
- [.env.consumer_api](https://github.com/exfinen/mpc-demo-infra/blob/main/.env.consumer_api.example)
28+
- [.env.client_cli](https://github.com/exfinen/mpc-demo-infra/blob/main/.env.client_cli.example)

docs/getting-started/deployment/servers/_category_.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"label": "Servers",
33
"link": {
44
"type": "generated-index"
5-
}
5+
},
6+
"position": 2
67
}
78

docs/getting-started/deployment/troubleshooting.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "Troubleshooting"
3+
sidebar_position: 4
34
---
45

56
# Troubleshooting and Support

0 commit comments

Comments
 (0)