Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
Public Member Functions | |
def | __init__ (self, Phase1ServerConfig phase1_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 | |
powersoftau | |
state | |
Handler processing phase1 (powersoftau) challenges and contributions. Some complexity is involved, because we need to track the number of valid contributions that have been made.
Definition at line 102 of file phase1_contribution_handler.py.
def coordinator.phase1_contribution_handler.Phase1ContributionHandler.__init__ | ( | self, | |
Phase1ServerConfig | phase1_config | ||
) |
Definition at line 109 of file phase1_contribution_handler.py.
str coordinator.phase1_contribution_handler.Phase1ContributionHandler.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 127 of file phase1_contribution_handler.py.
None coordinator.phase1_contribution_handler.Phase1ContributionHandler.on_completed | ( | self | ) |
All contributions have been received and the MPC is complete.
Reimplemented from coordinator.icontributionhandler.IContributionHandler.
Definition at line 154 of file phase1_contribution_handler.py.
bool coordinator.phase1_contribution_handler.Phase1ContributionHandler.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 131 of file phase1_contribution_handler.py.
coordinator.phase1_contribution_handler.Phase1ContributionHandler.powersoftau |
Definition at line 110 of file phase1_contribution_handler.py.
coordinator.phase1_contribution_handler.Phase1ContributionHandler.state |
Definition at line 115 of file phase1_contribution_handler.py.