-
Notifications
You must be signed in to change notification settings - Fork 37
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
Refactor signer state machine #1931
Conversation
Test Results 4 files ±0 53 suites ±0 9m 40s ⏱️ -1s Results for commit a8a3b5e. ± Comparison against base commit 9fd9ae8. This pull request removes 9 and adds 18 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
c8f619c
to
2064e90
Compare
fbfe294
to
1aac955
Compare
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.
Overall looks good 👍
I left few comments and suggestions below.
54e66db
to
89ffca3
Compare
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.
LGTM 👍
Co-authored-by: Jean-Philippe Raynaud <jpraynaud@users.noreply.github.com> Co-authored-by: Sébastien Fauvel <sfauvel@users.noreply.github.com>
…ign_signed_entity_type`
Co-authored-by: Sébastien Fauvel <sfauvel@users.noreply.github.com>
…oSign' when the last signed entity type is the same as the one in the pending certificate.
Co-authored-by: Sébastien Fauvel <sfauvel@users.noreply.github.com>
…ign` to `ReadyToSign`
…_sign_to_ready_to_sign`and not the certificate
* mithril-signer from `0.2.182` to `0.2.183`
89ffca3
to
8ef6732
Compare
ea61195
to
a8a3b5e
Compare
Content
This PR includes an update of the state machine of the signer in order to prepare the phase of the decentralization of the signature orchestration.
States modifications:
Signed
state is removedReadyToSign
andRegisterNotAbleToSign
states are addedTransitions:
Unregistered
->RegisteredNotAbleToSign
when registration succeeds but the signer can not sign the current epochUnregistered
->ReadyToSign
when registration succeeds and the signer can sign the current epochReadyToSign
->ReadyToSign
when trying to create a new message if any and sign itPre-submit checklist
Issue(s)
Closes #1922