Skip to content

feat: aggregation mode - #1840

Merged
JuArce merged 59 commits into
stagingfrom
feat/aggregation-mode
Apr 7, 2025
Merged

feat: aggregation mode#1840
JuArce merged 59 commits into
stagingfrom
feat/aggregation-mode

Conversation

@MarcosNicolau

@MarcosNicolauMarcosNicolau commented Mar 28, 2025

Copy link
Copy Markdown
Collaborator

Description

Aligned aggregation mode first iteration.

Type of change

Please delete options that are not relevant.

  • New feature

Checklist

  • “Hotfix” to testnet, everything else to staging
  • Linked to Github Issue
  • This change depends on code or research by an external entity
    • Acknowledgements were updated to give credit
  • Unit tests added
  • This change requires new documentation.
    • Documentation has been added/updated.
  • This change is an Optimization
    • Benchmarks added/run
  • Has a known issue
  • If your PR changes the Operator compatibility (Ex: Upgrade prover versions)
    • This PR adds compatibility for operator for both versions and do not change batcher/docs/examples
    • This PR updates batcher and docs/examples to the newer version. This requires the operator are already updated to be compatible

@MauroToscano
MauroToscano marked this pull request as ready for review April 3, 2025 16:40
@github-actions

github-actionsBot commented Apr 3, 2025

Copy link
Copy Markdown

Changes to gas cost

Generated at commit: 13e604adeb050a023a93ad6b85fbdb7ed3ae4f5b, compared to commit: 956b4a727ffc9d152eee7a334ead6c5630d8df39

🧾 Summary (10% most significant diffs)

ContractMethodAvg (+/-)%
AlignedLayerServiceManagercreateNewTask
receive
+127 ❌
+94 ❌
+0.16%
+0.20%

Full diff report 👇
ContractDeployment Cost (+/-)MethodMin (+/-)%Avg (+/-)%Median (+/-)%Max (+/-)%# Calls (+/-)
AlignedLayerServiceManager8,319,208 (0)createNewTask
receive
77,694 (+19,840)
47,472 (+23,976)
+34.29%
+102.04%
78,045 (+127)
47,472 (+94)
+0.16%
+0.20%
77,982 (+66)
47,472 (0)
+0.08%
0.00%
78,696 (-72)
47,472 (0)
-0.09%
0.00%
256 (0)
256 (0)

@MarcosNicolauMarcosNicolau changed the title feat: aggregation mode first iterationfeat: aggregation modeApr 4, 2025
//bytes calldata sp1ProofBytes
) external;

function getAggregatedProof(uint64 proofNumber)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Would be nice to add docs for this function

@@ -0,0 +1,40 @@
use aligned_sdk::core::types::VerificationData;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should add checks to avoid OOM DDoS

Comment threadaggregation_mode/src/backend/mod.rs Outdated

@JuArceJuArce left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

There is missing guide to run in /docs/.../setup_aligned, but it can be added in a new PR

@JuArce
JuArce enabled auto-merge April 7, 2025 14:43
@JuArce
JuArce added this pull request to the merge queueApr 7, 2025
Merged via the queue into staging with commit 43a1084Apr 7, 2025
@JuArce
JuArce deleted the feat/aggregation-mode branch April 7, 2025 14:55
Sign up for freeto 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.

4 participants

@MarcosNicolau@MauroToscano@JuArce@Mechanix97