|
Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
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) |
Interface that must be implemented by handlers processing contributions
Definition at line 16 of file icontributionhandler.py.
| 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.
| 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.
| 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.
1.8.17