Enhance aggregator support for signatures when not ready

Open
#3,409 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

@HusseinAdeiza is already working on this.

Since Sep 27, 2026.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
58/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust
Domain
api, backend

Research direction

Start by locating the aggregator state machine and the existing /register-signature route, then trace how blocked and idle states are represented. Define the requested registration gate, status method, and enum, and verify that the route returns 503 only while the gate is closed and remains unchanged otherwise.

Written by the indexing model from the issue text.

Description

optimization :hammer_and_wrench:

Why

The aggregator is not properly handling the reception of single signatures when it is not ready to sign (in particular when it is blocked). In that case, a long error message is logged which prevents their readability and exploitation during debugging.

What

Enhanced handling of incoming signatures when the aggregator is not ready.

How

  • Add a new service SingleSignatureRegistrationGate in the aggregator
  • Add a new get_status(&self)->SingleSignatureRegistrationStatus method and a SingleSignatureRegistrationStatus enum
  • The gate is closed when the state machine is in the Blocked state
  • The gate is opened during the Idle state
  • The /register-signature route returns a 503 error if the gate is closed, and is not modified otherwise
Dominant language
Rust
Stars
155
Forks
52
Avg merge
2d 17h
Merged PRs (30d)
37

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from IntersectMBO/mithril

All issues in IntersectMBO/mithril

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.