Skip to content

Implement a common aggregator client - Phase 1 #2640

@jpraynaud

Description

@jpraynaud

Why

We have some code that is duplicated for the aggregator client in all the crates that need to communicate with an aggregator (aggregator, signer, client). We want to remove the duplicated code for easier maintenance.

What

Create a new internal crate for supporting the communications with an aggregator and publish it.

How

  • Create a new internal mithril-aggregator-client crate
  • Abstract the requests to be executed by the client with a trait instead of the existing enums (as what has been done in the Query trait)
  • Define new queries for all existing request on the duplicated clients (not for the Mithril client library yet)
  • Deprecate the with_aggregator_client function in client builder

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions