Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Public Member Functions | List of all members
coordinator.icontributionhandler.IContributionHandler Class Reference
Inheritance diagram for coordinator.icontributionhandler.IContributionHandler:
Inheritance graph
[legend]
Collaboration diagram for coordinator.icontributionhandler.IContributionHandler:
Collaboration graph
[legend]

Public Member Functions

str get_current_challenge_file (self, int contributor_idx)
 
bool process_contribution (self, int contribution_idx, str file_name)
 
None on_completed (self)
 

Detailed Description

Interface that must be implemented by handlers processing contributions

Definition at line 16 of file icontributionhandler.py.

Member Function Documentation

◆ get_current_challenge_file()

str coordinator.icontributionhandler.IContributionHandler.get_current_challenge_file (   self,
int  contributor_idx 
)
Return the location of the current challenge to serve.

Reimplemented in coordinator.phase1_contribution_handler.Phase1ContributionHandler, coordinator.phase2_contribution_handler.Phase2ContributionHandler, and coordinator.null_contribution_handler.NullContributionHandler.

Definition at line 22 of file icontributionhandler.py.

22  def get_current_challenge_file(self, contributor_idx: int) -> str:
23  """
24  Return the location of the current challenge to serve.
25  """
26  pass
27 
Here is the caller graph for this function:

◆ on_completed()

None coordinator.icontributionhandler.IContributionHandler.on_completed (   self)
All contributions have been received and the MPC is complete.

Reimplemented in coordinator.phase1_contribution_handler.Phase1ContributionHandler, coordinator.phase2_contribution_handler.Phase2ContributionHandler, and coordinator.null_contribution_handler.NullContributionHandler.

Definition at line 38 of file icontributionhandler.py.

38  def on_completed(self) -> None:
39  """
40  All contributions have been received and the MPC is complete.
41  """
42  pass

◆ process_contribution()

bool coordinator.icontributionhandler.IContributionHandler.process_contribution (   self,
int  contribution_idx,
str  file_name 
)
Process the given uploaded file as a contribution. If any errors are
found, throw an exception with an appropriate message, or return false.

Reimplemented in coordinator.phase1_contribution_handler.Phase1ContributionHandler, coordinator.phase2_contribution_handler.Phase2ContributionHandler, and coordinator.null_contribution_handler.NullContributionHandler.

Definition at line 29 of file icontributionhandler.py.

29  def process_contribution(
30  self, contribution_idx: int, file_name: str) -> bool:
31  """
32  Process the given uploaded file as a contribution. If any errors are
33  found, throw an exception with an appropriate message, or return false.
34  """
35  pass
36 

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