forked from celo-org/snark-setup
-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Labels
Milestone
Description
Initially many functions were dealing with both verifier and contributor at the same time. But after some time these roles have diverged, and most of the functions start with the check like this:
if participant.is_verifier() {
return Err(CoordinatorError::ExpectedContributor);
}Having two distinct structures instead of an enum will allow to catch many errors in compile time rather than in runtime. It will also reduce the size of many functions, which improves the maintenance.
Reactions are currently unavailable