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

Public Member Functions

def __init__ (self, Optional[str] pot_process_tool=None, bool dry_run=False)
 
bool compute_lagrange (self, str pot_file, int pot_degree, str lagrange_output_file, Optional[int] lagrange_degree)
 

Public Attributes

 pot_process_tool
 
 dry_run
 

Detailed Description

Wrapper around the pot-process command.

Definition at line 13 of file powersoftau_process_command.py.

Constructor & Destructor Documentation

◆ __init__()

def coordinator.powersoftau_process_command.PowersOfTauProcessCommand.__init__ (   self,
Optional[str]   pot_process_tool = None,
bool   dry_run = False 
)

Definition at line 18 of file powersoftau_process_command.py.

18  def __init__(
19  self, pot_process_tool: Optional[str] = None, dry_run: bool = False):
20  self.pot_process_tool = pot_process_tool or _default_tool()
21  self.dry_run = dry_run
22  assert exists(self.pot_process_tool), \
23  f"pot-process tool does not exist {self.pot_process_tool}"
24 

Member Function Documentation

◆ compute_lagrange()

bool coordinator.powersoftau_process_command.PowersOfTauProcessCommand.compute_lagrange (   self,
str  pot_file,
int  pot_degree,
str  lagrange_output_file,
Optional[int]  lagrange_degree 
)

Definition at line 25 of file powersoftau_process_command.py.

25  def compute_lagrange(
26  self,
27  pot_file: str,
28  pot_degree: int,
29  lagrange_output_file: str,
30  lagrange_degree: Optional[int]) -> bool:
31  lagrange_degree = lagrange_degree or pot_degree
32  return self._exec(
33  ["--out", lagrange_output_file,
34  "--lagrange-degree", str(lagrange_degree),
35  pot_file,
36  str(pot_degree)])
37 
Here is the call graph for this function:

Member Data Documentation

◆ dry_run

coordinator.powersoftau_process_command.PowersOfTauProcessCommand.dry_run

Definition at line 20 of file powersoftau_process_command.py.

◆ pot_process_tool

coordinator.powersoftau_process_command.PowersOfTauProcessCommand.pot_process_tool

Definition at line 19 of file powersoftau_process_command.py.


The documentation for this class was generated from the following file:
test_commands.mock.str
str
Definition: mock.py:18