Skip to content
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

feat: UX improvement #258

Open
wants to merge 13 commits into
base: dev
Choose a base branch
from
Open

feat: UX improvement #258

wants to merge 13 commits into from

Conversation

MegaRedHand
Copy link
Contributor

@MegaRedHand MegaRedHand commented Jan 30, 2025

Fixes #

What Changed?

This PR introduces two new crates to the SDK: eigen-aggregator and eigen-operator, with a higher-level interface than the other crates.

Reviewer Checklist

  • New features are tested and documented
  • PR updates the changelog with a description of changes
  • PR has one of the changelog-X labels (if applies)
  • Code deprecates any old functionality before removing it

@MegaRedHand MegaRedHand changed the base branch from main to dev January 30, 2025 16:24
@MegaRedHand MegaRedHand marked this pull request as draft January 30, 2025 20:59
crates/config/src/lib.rs Outdated Show resolved Hide resolved
crates/config/src/ecdsa_config.rs Outdated Show resolved Hide resolved
crates/config/src/operator_config.rs Outdated Show resolved Hide resolved
crates/config/src/bls_config.rs Outdated Show resolved Hide resolved
@MegaRedHand MegaRedHand marked this pull request as ready for review February 3, 2025 20:21
@MegaRedHand MegaRedHand marked this pull request as draft February 3, 2025 20:21
@MegaRedHand MegaRedHand marked this pull request as ready for review February 3, 2025 20:55
.process_new_signature(task_index, task_response_digest, signature, operator_id)
.await?;
info!("processed signature for index {:?}", task_index);
let quorum_reached = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this assumed that 2 signatures are needed to process .
there's a better way in dev branch here
https://github.com/Layr-Labs/incredible-squaring-avs-rs/blob/b953a8127b604d91175d71e7c2b47ad4023f7e77/crates/aggregator/src/lib.rs#L320-L395

it handles all cases using total stake and quorum threshold percentage. Its hardcoded rn there with 4800 (40% of 12000(total stake))

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. However, I was thinking of just waiting for a signature aggregate to be returned by the BLS aggregation service.

Copy link
Collaborator

@supernovahs supernovahs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants