Configuration for Phase1 server
Definition at line 28 of file phase1_contribution_handler.py.
◆ __init__()
def coordinator.phase1_contribution_handler.Phase1ServerConfig.__init__ |
( |
|
self, |
|
|
Configuration |
server_configuration, |
|
|
Optional[str] |
pot_path, |
|
|
Optional[int] |
num_powers |
|
) |
| |
Definition at line 32 of file phase1_contribution_handler.py.
34 server_configuration: Configuration,
35 pot_path: Optional[str],
36 num_powers: Optional[int]):
37 self.server_configuration = server_configuration
38 self.powersoftau_path = pot_path
39 self.num_powers = num_powers
◆ from_json()
Phase1ServerConfig coordinator.phase1_contribution_handler.Phase1ServerConfig.from_json |
( |
str |
phase1_config_json, |
|
|
Optional[str] |
config_path = None |
|
) |
| |
|
static |
Definition at line 45 of file phase1_contribution_handler.py.
46 phase1_config_json: str,
47 config_path: Optional[str] =
None) -> Phase1ServerConfig:
48 return Phase1ServerConfig._from_json_dict(
49 json.loads(phase1_config_json), config_path)
◆ to_json()
str coordinator.phase1_contribution_handler.Phase1ServerConfig.to_json |
( |
|
self | ) |
|
◆ num_powers
coordinator.phase1_contribution_handler.Phase1ServerConfig.num_powers |
◆ powersoftau_path
coordinator.phase1_contribution_handler.Phase1ServerConfig.powersoftau_path |
◆ server_configuration
coordinator.phase1_contribution_handler.Phase1ServerConfig.server_configuration |
The documentation for this class was generated from the following file: