-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python investigation renames #75
Python investigation renames #75
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK, that's nice
python/example.py
Outdated
@@ -101,7 +101,7 @@ async def participant( | |||
state2, eq_round1 = participant_step2(hostseckey, state1, cmsg1) | |||
except UnknownFaultyParticipantOrCoordinatorError as e: | |||
if blame_mode: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
investigation_mode
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
python/example.py
Outdated
@@ -129,7 +129,7 @@ async def coordinator( | |||
# If the coordinator implements blame mode and it is enabled, it sends an | |||
# extra message to the participants. | |||
if blame_mode: | |||
blame_msgs = coordinator_blame(pmsgs1) | |||
blame_msgs = coordinator_investigate(pmsgs1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blame_msgs = coordinator_investigate(pmsgs1) | |
inv_msgs = coordinator_investigate(pmsgs1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
python/tests.py
Outdated
@@ -249,10 +249,10 @@ def simulate_chilldkg( | |||
def simulate_chilldkg_full( | |||
hostseckeys, | |||
t, | |||
blame: bool, | |||
investigation: bool, | |||
) -> List[Optional[Tuple[chilldkg.DKGOutput, chilldkg.RecoveryData]]]: | |||
# blaming is not supported by this wrapper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# blaming is not supported by this wrapper | |
# Investigating is not supported by this wrapper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
python/chilldkg_ref/encpedpop.py
Outdated
) -> NoReturn: | ||
simpl_blame_state, enc_secshare, pads = blame_state | ||
enc_partial_secshares, partial_pubshares = cblame | ||
simpl_blame_state, enc_secshare, pads = error.blame_state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simpl_blame_state, enc_secshare, pads = error.blame_state | |
simpl_invstate, enc_secshare, pads = error.invstate |
python/chilldkg_ref/chilldkg.py
Outdated
cblame: CoordinatorBlameMsg, | ||
def participant_investigate( | ||
error: UnknownFaultyParticipantOrCoordinatorError, | ||
cinvestigation: CoordinatorInvestigationMsg, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can use a short form "inv" in variable names (everywhere):
cinvestigation: CoordinatorInvestigationMsg, | |
cinv: CoordinatorInvestigationMsg, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
fe66c7a
to
23547a7
Compare
participant_blame -> participant_investigate coordinator_blame -> coordinator_investigate CoordinatorBlameMsg -> CoordinatorInvestigationMsg cblame -> cinv blame_mode -> investigation_mode blame_msg -> inv_msg Leaving the "blame state" to be fixed in the next commit.
23547a7
to
be83df9
Compare
First commit should be ready for review now. Still working on the second commit. |
be83df9
to
c3298c9
Compare
Ready for review now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
No description provided.