Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
coordinator.phase2_contribution_handler.Phase2ServerConfig Class Reference

Public Member Functions

def __init__ (self, Configuration server_configuration, Optional[str] mpc_tool)
 
str to_json (self)
 

Static Public Member Functions

Phase2ServerConfig from_json (str phase2_config_json, Optional[str] config_path=None)
 

Public Attributes

 server_configuration
 
 mpc_tool
 

Detailed Description

Configuration object for phase2 server.

Definition at line 27 of file phase2_contribution_handler.py.

Constructor & Destructor Documentation

◆ __init__()

def coordinator.phase2_contribution_handler.Phase2ServerConfig.__init__ (   self,
Configuration  server_configuration,
Optional[str]  mpc_tool 
)

Definition at line 32 of file phase2_contribution_handler.py.

32  def __init__(
33  self,
34  server_configuration: Configuration,
35  mpc_tool: Optional[str]):
36  self.server_configuration = server_configuration
37  self.mpc_tool = mpc_tool
38 

Member Function Documentation

◆ from_json()

Phase2ServerConfig coordinator.phase2_contribution_handler.Phase2ServerConfig.from_json ( str  phase2_config_json,
Optional[str]   config_path = None 
)
static

Definition at line 43 of file phase2_contribution_handler.py.

43  def from_json(
44  phase2_config_json: str,
45  config_path: Optional[str] = None) -> Phase2ServerConfig:
46  return Phase2ServerConfig._from_json_dict(
47  json.loads(phase2_config_json), config_path)
48 

◆ to_json()

str coordinator.phase2_contribution_handler.Phase2ServerConfig.to_json (   self)

Definition at line 39 of file phase2_contribution_handler.py.

39  def to_json(self) -> str:
40  return json.dumps(self._to_json_dict(), indent=4)
41 
Here is the call graph for this function:

Member Data Documentation

◆ mpc_tool

coordinator.phase2_contribution_handler.Phase2ServerConfig.mpc_tool

Definition at line 34 of file phase2_contribution_handler.py.

◆ server_configuration

coordinator.phase2_contribution_handler.Phase2ServerConfig.server_configuration

Definition at line 33 of file phase2_contribution_handler.py.


The documentation for this class was generated from the following file: