Skip to content

Commit 7db5f31

Browse files
committed
fix merge
1 parent 6831ab4 commit 7db5f31

8 files changed

Lines changed: 12 additions & 136 deletions

File tree

aggregation_mode/README.md

Lines changed: 0 additions & 57 deletions
This file was deleted.

aggregation_mode/readme.md

Lines changed: 0 additions & 57 deletions
This file was deleted.

aggregation_mode/src/backend/fetcher.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ use super::{
55
types::{AlignedLayerServiceManager, AlignedLayerServiceManagerContract, RPCProvider},
66
};
77
use crate::{
8-
aggregators::{sp1_aggregator::SP1ProofWithPubValuesAndElf, AlignedProof},
9-
backend::s3::get_aligned_batch_from_s3,
8+
aggregators::{sp1_aggregator::SP1ProofWithPubValuesAndElf, AlignedProof}, backend::s3::get_aligned_batch_from_s3
109
};
1110
use aligned_sdk::core::types::ProvingSystemId;
1211
use alloy::{
@@ -89,10 +88,7 @@ impl ProofsFetcher {
8988
ProvingSystemId::SP1 => {
9089
let elf = p.vm_program_code?;
9190
let proof_with_pub_values = bincode::deserialize(&p.proof).ok()?;
92-
let sp1_proof = SP1ProofWithPubValuesAndElf {
93-
proof_with_pub_values,
94-
elf,
95-
};
91+
let sp1_proof = SP1ProofWithPubValuesAndElf { proof_with_pub_values, elf };
9692

9793
Some(AlignedProof::SP1(sp1_proof))
9894
}

aggregation_mode/src/backend/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ use crate::aggregators::{
1111
};
1212

1313
use alloy::{
14-
consensus::BlobTransactionSidecar,
14+
consensus::{BlobTransactionSidecar},
1515
eips::eip4844::BYTES_PER_BLOB,
1616
hex,
1717
network::EthereumWallet,
18-
primitives::Address,
18+
primitives::{Address},
1919
providers::{PendingTransactionError, ProviderBuilder},
2020
rpc::types::TransactionReceipt,
2121
signers::local::LocalSigner,

aggregation_mode/src/backend/s3.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub enum GetBatchProofsError {
66
Deserialization,
77
EmptyBody,
88
StatusFailed,
9-
ReqwestClientFailed,
9+
ReqwestClientFailed
1010
}
1111

1212
// needed to make S3 bucket work
@@ -16,13 +16,11 @@ pub async fn get_aligned_batch_from_s3(
1616
url: String,
1717
) -> Result<Vec<VerificationData>, GetBatchProofsError> {
1818
let client = reqwest::Client::builder()
19-
.user_agent(DEFAULT_USER_AGENT)
20-
.build()
21-
.map_err(|_| GetBatchProofsError::ReqwestClientFailed)?;
19+
.user_agent(DEFAULT_USER_AGENT)
20+
.build()
21+
.map_err(|_| GetBatchProofsError::ReqwestClientFailed)?;
2222

23-
let response = client
24-
.get(url)
25-
.send()
23+
let response = client.get(url).send()
2624
.await
2725
.map_err(|_| GetBatchProofsError::Fetching)?;
2826
if !response.status().is_success() {

contracts/remappings.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ eigenlayer-scripts/=lib/eigenlayer-middleware/lib/eigenlayer-contracts/script/
55
forge-std/=lib/forge-std/src/
66
@openzeppelin/contracts/=lib/eigenlayer-middleware/lib/openzeppelin-contracts/contracts/
77
@openzeppelin-upgrades/contracts/=lib/eigenlayer-middleware/lib/openzeppelin-contracts-upgradeable/contracts/
8-
@sp1-contracts/=lib/sp1-contracts/contracts/src/

contracts/src/core/AlignedProofAggregationService.sol

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,15 @@ contract AlignedProofAggregationService is
4949
bytes32 blobVersionedHash,
5050
//bytes32 sp1ProgramVKey,
5151
bytes calldata sp1PublicValues
52-
)
5352
//bytes calldata sp1ProofBytes
54-
public
55-
onlyAlignedAggregator
56-
{
53+
) public onlyAlignedAggregator {
5754
// In dev mode, poofs are mocked, so we skip the verification part
5855
if (sp1VerifierAddress == VERIFIER_MOCK_ADDRESS) {
5956
(bytes32 merkleRoot) = abi.decode(sp1PublicValues, (bytes32));
6057
_newAggregatedProof(merkleRoot, blobVersionedHash);
6158
return;
6259
}
60+
6361
}
6462

6563
function markCurrentAggregatedProofAsMissed() public onlyAlignedAggregator {

contracts/src/core/IAlignedProofAggregationService.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ interface IAlignedProofAggregationService {
3232
bytes32 blobVersionedHash,
3333
//bytes32 sp1ProgramVKey,
3434
bytes calldata sp1PublicValues
35-
)
3635
//bytes calldata sp1ProofBytes
37-
external;
36+
) external;
3837

3938
function getAggregatedProof(uint64 proofNumber)
4039
external

0 commit comments

Comments
 (0)