File size: 928 Bytes
1ba3f22 c119738 1ba3f22 c119738 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
"All constants used in the project."
from pathlib import Path
# The directory of this project
REPO_DIR = Path(__file__).parent
# This repository's main necessary directories
DEPLOYMENT_PATH = REPO_DIR / "deployment_files"
FHE_KEYS = REPO_DIR / ".fhe_keys"
CLIENT_FILES = REPO_DIR / "client_files"
SERVER_FILES = REPO_DIR / "server_files"
# Create the necessary directories
FHE_KEYS.mkdir(exist_ok=True)
CLIENT_FILES.mkdir(exist_ok=True)
SERVER_FILES.mkdir(exist_ok=True)
# Store the server's URL
SERVER_URL = "http://localhost:8000/"
RANDOM_STATE = 0
INITIAL_INPUT_SHAPE = (1, 49)
CLIENT_TYPES = ["user", "bank", "third_party"]
INPUT_INDEXES = {
"user": 0,
"bank": 1,
"third_party": 2,
}
START_POSITIONS = {
"user": 0, # First position: start from 0
"bank": 17, # Second position: start from len(input_user)
"third_party": 33, # Third position: start from len(input_user) + len(input_bank)
}
|