You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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(){returnErr(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.
The text was updated successfully, but these errors were encountered:
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:
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.
The text was updated successfully, but these errors were encountered: