|
Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|


Public Member Functions | |
| def | __init__ (self, Phase2ServerConfig phase2_config) |
| str | get_current_challenge_file (self, int contributor_idx) |
| bool | process_contribution (self, int contribution_idx, str file_name) |
| None | on_completed (self) |
Public Attributes | |
| mpc | |
Handler processing phase2 challenges and contributions.
Definition at line 65 of file phase2_contribution_handler.py.
| def coordinator.phase2_contribution_handler.Phase2ContributionHandler.__init__ | ( | self, | |
| Phase2ServerConfig | phase2_config | ||
| ) |
Definition at line 70 of file phase2_contribution_handler.py.
| str coordinator.phase2_contribution_handler.Phase2ContributionHandler.get_current_challenge_file | ( | self, | |
| int | contributor_idx | ||
| ) |
Return the location of the current challenge to serve.
Reimplemented from coordinator.icontributionhandler.IContributionHandler.
Definition at line 82 of file phase2_contribution_handler.py.
| None coordinator.phase2_contribution_handler.Phase2ContributionHandler.on_completed | ( | self | ) |
All contributions have been received and the MPC is complete.
Reimplemented from coordinator.icontributionhandler.IContributionHandler.
Definition at line 115 of file phase2_contribution_handler.py.
| bool coordinator.phase2_contribution_handler.Phase2ContributionHandler.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 from coordinator.icontributionhandler.IContributionHandler.
Definition at line 95 of file phase2_contribution_handler.py.

| coordinator.phase2_contribution_handler.Phase2ContributionHandler.mpc |
Definition at line 80 of file phase2_contribution_handler.py.
1.8.17