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.phase1_contribution_handler.Phase1ServerConfig Class Reference

Public Member Functions

def __init__ (self, Configuration server_configuration, Optional[str] pot_path, Optional[int] num_powers)
 
str to_json (self)
 

Static Public Member Functions

Phase1ServerConfig from_json (str phase1_config_json, Optional[str] config_path=None)
 

Public Attributes

 server_configuration
 
 powersoftau_path
 
 num_powers
 

Detailed Description

Configuration for Phase1 server

Definition at line 28 of file phase1_contribution_handler.py.

Constructor & Destructor Documentation

◆ __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.

32  def __init__(
33  self,
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
40 

Member Function Documentation

◆ 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.

45  def from_json(
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)
50 

◆ to_json()

str coordinator.phase1_contribution_handler.Phase1ServerConfig.to_json (   self)

Definition at line 41 of file phase1_contribution_handler.py.

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

Member Data Documentation

◆ num_powers

coordinator.phase1_contribution_handler.Phase1ServerConfig.num_powers

Definition at line 35 of file phase1_contribution_handler.py.

◆ powersoftau_path

coordinator.phase1_contribution_handler.Phase1ServerConfig.powersoftau_path

Definition at line 34 of file phase1_contribution_handler.py.

◆ server_configuration

coordinator.phase1_contribution_handler.Phase1ServerConfig.server_configuration

Definition at line 33 of file phase1_contribution_handler.py.


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