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

Commit f00a785

Browse files
committed
refine structure
1 parent fa0145b commit f00a785

File tree

16 files changed

+48
-103
lines changed

16 files changed

+48
-103
lines changed

docs/_intro_old.md

Lines changed: 0 additions & 48 deletions
This file was deleted.

docs/getting-started/_category_.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"label": "Getting Started",
33
"position": 3,
44
"link": {
5-
"type": "generated-index"
5+
"type": "generated-index",
6+
"slug": "/getting-started"
67
}
78
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: "Client"
3-
sidebar_position: 1
2+
title: "Sharing data and querying results"
3+
sidebar_position: 2
44
---
55

66
# Client CLI
77
Client CLI provides the following functionalities:
88

9-
- Sharing ETH Balance
9+
- Sharing ETH Balance
1010

1111
You can anonymously share your ETH balance at Binance
1212

@@ -88,7 +88,7 @@ Note: The binaries are built directly from the source code using public GitHub w
8888
1. Execute `Client CLI`:
8989
```bash
9090
poetry run client-share-data <eth-address> <binance-api-key> <binance-api-secret> --notary-crt-path $(pwd)/notary.crt
91-
```
91+
```
9292
- Multi-Server Configuration
9393
1. Follow the instructions in Client CLI Configuration to create a `.env.client_cli` in the repository root directory
9494

docs/getting-started/customization.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
sidebar_position: 1
2+
sidebar_position: 2
33
---
44

5-
# Customizing the Infrastructure
5+
# Customization
66

77
Developers can modify and extend the boilerplate to create their own privacy-preserving applications by customizing these following components:
88

@@ -28,7 +28,7 @@ Here is the main file for creating proof, where you can make this following cust
2828
- Specify "public" parts of the received message.
2929
We specify the part that we want to make it publicly shown in the proof (recv_public_ranges), by specifying the regex that must be "redacted" & "private"
3030

31-
- Specify "private" parts of the received message.
31+
- Specify "private" parts of the received message.
3232
We specify the private part (recv_private_ranges)that will be accompanied with sha3 commitment in the proof while being censored from the proof itself by specifying our preferred regex. In Binance example, we specify to make ETH free balance of only 2 decimlals precision private.
3333

3434
> With this structure, there will be some parts of received message that is not in either recv_public_ranges or recv_private_ranges. Those will be just redacted data that are censored without its correponding commitment (like in original TLSNotary)
@@ -61,4 +61,14 @@ This customization is to make sure we properly handle what data is allowed to pa
6161
Just modify the code [here](https://github.com/ZKStats/mpc-demo-infra/blob/e73b35aa487b8dc1efd403edddb80f10ebebf681/mpc_demo_infra/coordination_server/routes.py#L142-L157)
6262
- Modify how to process database i.e. creating task for sharing data MPC [here](https://github.com/ZKStats/mpc-demo-infra/blob/e73b35aa487b8dc1efd403edddb80f10ebebf681/mpc_demo_infra/coordination_server/routes.py#L233-L250)
6363

64-
## 4. Deploy and test the customized application locally before scaling to a remote setup.
64+
## 4. Test locally
65+
66+
To quickly check that your infrastructure customization is working as intended, you can run the integration tests as follows:
67+
68+
```bash
69+
poetry run pytest -s tests/test_integration.py
70+
```
71+
72+
## 5. Deploy the application locally/remotely
73+
74+
To deploy the application locally, you can follow the steps in the [Deployment](/getting-started/deployment) section.
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
2-
"label": "Deploying the Infrastructure",
2+
"label": "Deploying Infrastructure",
3+
"position": 1,
34
"link": {
4-
"type": "generated-index"
5+
"type": "generated-index",
6+
"slug": "/getting-started/deployment"
57
}
68
}
79

docs/getting-started/deployment/configuration.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ sidebar_position: 3
55
# Configuration
66

77
## 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)
8+
- [Coordination Server](https://github.com/ZKStats/mpc-demo-infra/blob/main/mpc_demo_infra/coordination_server/config.py)
9+
- [Computation Party Server](https://github.com/ZKStats/mpc-demo-infra/blob/main/mpc_demo_infra/computation_party_server/config.py)
10+
- [Data Consumer API Server](https://github.com/ZKStats/mpc-demo-infra/blob/main/mpc_demo_infra/data_consumer_api/config.py)
11+
- [Client CLI](https://github.com/ZKStats/mpc-demo-infra/blob/main/mpc_demo_infra/client_cli/config.py)
1212

1313
## Overriding Default Configuration
1414
You can create the following configuration files at the repository root to override the default configuration.
1515

1616
| Server | Configuration File Name | Example |
1717
| --- | --- | --- |
18-
| Coordination Server | `.env.coord` | [.env.coord](https://github.com/exfinen/mpc-demo-infra/blob/main/.env.coord.example) |
19-
| Computation Party Server | `.env.party` | [.env.party](https://github.com/exfinen/mpc-demo-infra/blob/main/.env.party.example) |
20-
| Data Consumer API Server | `.env.consumer_api` | [.env.consumer_api](https://github.com/exfinen/mpc-demo-infra/blob/main/.env.consumer_api.example) |
21-
| Client CLI | `.env.client_cli` | [.env.client_cli](https://github.com/exfinen/mpc-demo-infra/blob/main/.env.client_cli.example) |
18+
| Coordination Server | `.env.coord` | [.env.coord](https://github.com/ZKStats/mpc-demo-infra/blob/main/.env.coord.example) |
19+
| Computation Party Server | `.env.party` | [.env.party](https://github.com/ZKStats/mpc-demo-infra/blob/main/.env.party.example) |
20+
| Data Consumer API Server | `.env.consumer_api` | [.env.consumer_api](https://github.com/ZKStats/mpc-demo-infra/blob/main/.env.consumer_api.example) |
21+
| Client CLI | `.env.client_cli` | [.env.client_cli](https://github.com/ZKStats/mpc-demo-infra/blob/main/.env.client_cli.example) |
2222

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"label": "Locally",
3+
"link": {
4+
"type": "generated-index",
5+
"slug": "/getting-started/deployment/servers/local"
6+
}
7+
}
8+
File renamed without changes.

docs/getting-started/deployment/servers/local/using_docker.md renamed to docs/getting-started/deployment/local/using_docker.md

File renamed without changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"label": "To remote servers",
3+
"link": {
4+
"type": "generated-index",
5+
"slug": "/getting-started/deployment/remote"
6+
}
7+
}
8+

0 commit comments

Comments
 (0)