-
Notifications
You must be signed in to change notification settings - Fork 52
refactor(signer): split signer aggregator client into several small business services #2775
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
Merged
+288
−335
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test Results 4 files ±0 168 suites ±0 24m 6s ⏱️ +36s Results for commit 951dd5a. ± Comparison against base commit 161e0fc. This pull request removes 9 and adds 6 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
jpraynaud
approved these changes
Nov 12, 2025
Member
jpraynaud
left a comment
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 👍
…tpClient` Instead of implementing the publisher on the signer `AggregatorClient`, removing an intermediate layer
…SignerRegistrationPublisher` trait - Based on the same architecture than the `SignaturePublisher` - with an http implementation directly on the shared `AggregatorHttpClient` - add a spy implementation for the tests needs
…res` As it was supersed by the mithril network configuration and have now no usage even in tests.
…to `retrieve_all_signer_registrations` And `SignerEpochSettings` to `RegisteredSigners`
Since the former have been supersed with multiple traits which are implemented on the `FakeAggregator` test utils.
…in the same parent module and split the retriever in several modules like the publisher
* mithril-signer from `0.2.277` to `0.2.278`
1501736 to
951dd5a
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Content
This PR includes a refactor to the
mithril-signerinner architecture splitting itsAggregatorClientinto several small business service or removing unused method.Details
SignaturePublisherdirectly onmithril_aggregator_client::AggregatorHttpClient, this allow for the removal ofregister_signaturefrom the signerAggregatorClientAggregatorClient::retrieve_aggregator_featureswhich is no longer used since the introduction of theMithrilNetworkConfigurationProviderservices::signer_registrationmodule, with two submodules based on the architecture of theservices::signature_publishermodule:publisherwhich extract theAggregatorClient::register_signerinto a newSignerRegistrationPublishertraitretrieverwhich extract theAggregatorClient::retrieve_aggregator_featuresinto a newSignersRegistrationRetrievermithril_aggregator_client::AggregatorHttpClientcertificate_handlerto appropriate types)Pre-submit checklist
Issue(s)
Closes #2759