Skip to content

Commit b6ede8b

Browse files
committed
Merge branch 'staging' into feat/aggregate-proofs-in-chunks
2 parents 9a9ac6d + 124eba8 commit b6ede8b

File tree

43 files changed

+1489
-872
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1489
-872
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ start_proof_aggregator_gpu: is_aggregator_set reset_last_aggregated_block ## Sta
190190
start_proof_aggregator_gpu_ethereum_package: is_aggregator_set reset_last_aggregated_block ## Starts proof aggregator with proving activated in ethereum package
191191
AGGREGATOR=$(AGGREGATOR) SP1_PROVER=cuda cargo run --manifest-path ./aggregation_mode/Cargo.toml --release --features prove,gpu --bin proof_aggregator -- config-files/config-proof-aggregator-ethereum-package.yaml
192192

193-
194193
verify_aggregated_proof_sp1_holesky_stage:
195194
@echo "Verifying SP1 in aggregated proofs on holesky..."
196195
@cd batcher/aligned/ && \

aggregation_mode/src/backend/fetcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::{
1111
},
1212
backend::s3::get_aligned_batch_from_s3,
1313
};
14-
use aligned_sdk::core::types::ProvingSystemId;
14+
use aligned_sdk::common::types::ProvingSystemId;
1515
use alloy::{
1616
primitives::Address,
1717
providers::{Provider, ProviderBuilder},

aggregation_mode/src/backend/s3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use aligned_sdk::core::types::VerificationData;
1+
use aligned_sdk::common::types::VerificationData;
22

33
#[derive(Debug)]
44
#[allow(dead_code)]

batcher/aligned-batcher/src/config/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ impl ContractDeploymentOutput {
9393
}
9494

9595
fn default_aggregator_fee_percentage_multiplier() -> u128 {
96-
aligned_sdk::core::constants::DEFAULT_AGGREGATOR_FEE_PERCENTAGE_MULTIPLIER
96+
aligned_sdk::common::constants::DEFAULT_AGGREGATOR_FEE_PERCENTAGE_MULTIPLIER
9797
}
9898

9999
fn default_aggregator_gas_cost() -> u128 {
100-
aligned_sdk::core::constants::DEFAULT_AGGREGATOR_GAS_COST
100+
aligned_sdk::common::constants::DEFAULT_AGGREGATOR_GAS_COST
101101
}

batcher/aligned-batcher/src/connection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use std::sync::Arc;
22

33
use crate::types::{batch_queue::BatchQueueEntry, errors::BatcherError};
44
use aligned_sdk::{
5+
common::types::{BatchInclusionData, SubmitProofResponseMessage, VerificationCommitmentBatch},
56
communication::serialization::cbor_serialize,
6-
core::types::{BatchInclusionData, SubmitProofResponseMessage, VerificationCommitmentBatch},
77
};
88
use futures_util::{stream::SplitSink, SinkExt};
99
use lambdaworks_crypto::merkle_tree::merkle::MerkleTree;

batcher/aligned-batcher/src/eth/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::{
88
retry_function,
99
},
1010
};
11-
use aligned_sdk::core::constants::{
11+
use aligned_sdk::common::constants::{
1212
ETHEREUM_CALL_BACKOFF_FACTOR, ETHEREUM_CALL_MAX_RETRIES, ETHEREUM_CALL_MAX_RETRY_DELAY,
1313
ETHEREUM_CALL_MIN_RETRY_DELAY, GAS_PRICE_INCREMENT_PERCENTAGE_PER_ITERATION,
1414
OVERRIDE_GAS_PRICE_PERCENTAGE_MULTIPLIER, PERCENTAGE_DIVIDER,

batcher/aligned-batcher/src/gnark/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use aligned_sdk::core::types::ProvingSystemId;
1+
use aligned_sdk::common::types::ProvingSystemId;
22

33
#[derive(Copy, Clone, Debug)]
44
#[repr(C)]

batcher/aligned-batcher/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ use std::net::SocketAddr;
2323
use std::sync::Arc;
2424
use std::time::Duration;
2525

26-
use aligned_sdk::core::constants::{
26+
use aligned_sdk::common::constants::{
2727
ADDITIONAL_SUBMISSION_GAS_COST_PER_PROOF, BATCHER_SUBMISSION_BASE_GAS_COST,
2828
BUMP_BACKOFF_FACTOR, BUMP_MAX_RETRIES, BUMP_MAX_RETRY_DELAY, BUMP_MIN_RETRY_DELAY,
2929
CBOR_ARRAY_MAX_OVERHEAD, CONNECTION_TIMEOUT, DEFAULT_MAX_FEE_PER_PROOF,
3030
ETHEREUM_CALL_BACKOFF_FACTOR, ETHEREUM_CALL_MAX_RETRIES, ETHEREUM_CALL_MAX_RETRY_DELAY,
3131
ETHEREUM_CALL_MIN_RETRY_DELAY, GAS_PRICE_PERCENTAGE_MULTIPLIER, PERCENTAGE_DIVIDER,
3232
RESPOND_TO_TASK_FEE_LIMIT_PERCENTAGE_MULTIPLIER,
3333
};
34-
use aligned_sdk::core::types::{
34+
use aligned_sdk::common::types::{
3535
ClientMessage, GetNonceResponseMessage, NoncedVerificationData, ProofInvalidReason,
3636
ProvingSystemId, SubmitProofMessage, SubmitProofResponseMessage, VerificationCommitmentBatch,
3737
VerificationData, VerificationDataCommitment,

batcher/aligned-batcher/src/types/batch_queue.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use aligned_sdk::{
2-
communication::serialization::cbor_serialize,
3-
core::{
2+
common::{
43
constants::CBOR_ARRAY_MAX_OVERHEAD,
54
types::{NoncedVerificationData, VerificationDataCommitment},
65
},
6+
communication::serialization::cbor_serialize,
77
};
88
use ethers::types::{Address, Signature, U256};
99
use priority_queue::PriorityQueue;
@@ -214,9 +214,9 @@ fn calculate_fee_per_proof(batch_len: usize, gas_price: U256, constant_gas_cost:
214214

215215
#[cfg(test)]
216216
mod test {
217-
use aligned_sdk::core::constants::DEFAULT_CONSTANT_GAS_COST;
218-
use aligned_sdk::core::types::ProvingSystemId;
219-
use aligned_sdk::core::types::VerificationData;
217+
use aligned_sdk::common::constants::DEFAULT_CONSTANT_GAS_COST;
218+
use aligned_sdk::common::types::ProvingSystemId;
219+
use aligned_sdk::common::types::VerificationData;
220220
use ethers::types::Address;
221221

222222
use super::*;

batcher/aligned-batcher/src/zk_utils/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::gnark::verify_gnark;
22
use crate::risc_zero::verify_risc_zero_proof;
33
use crate::sp1::verify_sp1_proof;
4-
use aligned_sdk::core::types::{ProvingSystemId, VerificationData};
4+
use aligned_sdk::common::types::{ProvingSystemId, VerificationData};
55
use ethers::types::U256;
66
use log::{debug, warn};
77

@@ -72,7 +72,7 @@ pub(crate) fn is_verifier_disabled(
7272
#[cfg(test)]
7373
mod test {
7474
use super::is_verifier_disabled;
75-
use aligned_sdk::core::types::{ProvingSystemId, VerificationData};
75+
use aligned_sdk::common::types::{ProvingSystemId, VerificationData};
7676
use ethers::types::Address;
7777

7878
fn get_all_verifiers() -> Vec<ProvingSystemId> {

0 commit comments

Comments
 (0)