Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
Public Member Functions | |
str | get_current_challenge_file (self, int _next_contributor_idx) |
bool | process_contribution (self, int _contributionn_idx, str file_name) |
None | on_completed (self) |
A null handler that accepts contributions and simply stores them as subsequent challenges. When the MPC has completed, the latest contribution is moved to 'final-upload'. Can be used for testing coordinator configuration (certificate setup, etc).
Definition at line 16 of file null_contribution_handler.py.
str coordinator.null_contribution_handler.NullContributionHandler.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 24 of file null_contribution_handler.py.
None coordinator.null_contribution_handler.NullContributionHandler.on_completed | ( | self | ) |
All contributions have been received and the MPC is complete.
Reimplemented from coordinator.icontributionhandler.IContributionHandler.
Definition at line 32 of file null_contribution_handler.py.
bool coordinator.null_contribution_handler.NullContributionHandler.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 27 of file null_contribution_handler.py.