Skip to content

Conversation

@JuArce
Copy link
Collaborator

@JuArce JuArce commented Apr 3, 2025

Integrate sp1 verifier with aggregation mode

Description

Deploys SP1 contracts on anvil in devnet.
Creates a new Makefile command to deploy the sp1 verification contracts and gateways

make anvil_deploy_sp1_contracts

To ensure the correct state load on anvil, the deployer first loads the eigenlayers contracts and then dumps them into the sp1-contracts state file with the sp1 contracts already loaded. Then, the anvil aligned contracts deployer (make anvil_deploy_aligned_contracts) loads this state on start instead of the original eigenlayer contracts.

How to test

  1. make anvil_start_with_block_time

  2. make batcher_start_local

  3. make batcher_send_sp1_burst

  4. Once the batch is created, you can run the proof aggregator with make start_proof_aggregator_local_with_proving

  5. If you want to run the verifier with a mock, run make start_proof_aggregator_local

Note: Step 4 will take some time because it has to aggregate the proofs

Type of change

  • New feature

Checklist

  • Add a new deployer for Groth16 gateway.
  • Add a new deployer for Groth16 verifier V4.0.0.
  • Add a new command to deploy the contracts.
  • Add the SP1-contracts submodule.

@JuArce JuArce requested a review from Copilot April 7, 2025 14:25
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 8 out of 26 changed files in this pull request and generated 1 comment.

Files not reviewed (18)
  • Makefile: Language not supported
  • contracts/deployments/31337.json: Language not supported
  • contracts/lib/sp1-contracts: Language not supported
  • contracts/remappings.txt: Language not supported
  • contracts/script/deploy/SP1VerifierGatewayGroth16Deployer.s.sol: Language not supported
  • contracts/script/deploy/SP1VerifierGroth16Deployer.s.sol: Language not supported
  • contracts/script/deploy/config/devnet/proof-aggregator-service.devnet.config.json: Language not supported
  • contracts/script/deploy/config/devnet/proof-aggregator-service.devnet.mock.config.json: Language not supported
  • contracts/script/deploy/config/holesky/proof-aggregator-service.holesky.config.stage.json: Language not supported
  • contracts/script/output/devnet/alignedlayer_deployment_output.json: Language not supported
  • contracts/script/output/devnet/proof_aggregation_service_deployment_output.mock.json: Language not supported
  • contracts/script/output/holesky/proof_aggregation_service_deployment_output.stage.json: Language not supported
  • contracts/scripts/.env.stage: Language not supported
  • contracts/scripts/anvil/deploy_aligned_contracts.sh: Language not supported
  • contracts/scripts/anvil/deploy_sp1_contracts.sh: Language not supported
  • contracts/scripts/deploy_proof_aggregator.sh: Language not supported
  • contracts/scripts/proof_aggregator_service/.env.example: Language not supported
  • contracts/scripts/proof_aggregator_service/deploy.sh: Language not supported

Base automatically changed from feat/aggregation-mode to staging April 7, 2025 14:55
JuArce added 2 commits April 7, 2025 13:34
…-mode

# Conflicts:
#	Makefile
#	contracts/script/deploy/config/devnet/proof-aggregator-service.devnet.config.json
#	contracts/scripts/anvil/deploy_aligned_contracts.sh
#	contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json
#	contracts/src/core/AlignedProofAggregationService.sol
#	contracts/src/core/IAlignedProofAggregationService.sol
@MauroToscano MauroToscano added this pull request to the merge queue Apr 8, 2025
Merged via the queue into staging with commit 37be9e4 Apr 8, 2025
6 checks passed
@MauroToscano MauroToscano deleted the integrate-sp1-into-aggregation-mode branch April 8, 2025 17:34
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.

5 participants