Skip to content

Commit 8a70e50

Browse files
committed
chore: undo debug changes
1 parent c5e330a commit 8a70e50

14 files changed

+2305
-2335
lines changed

aggregation_mode/Cargo.lock

Lines changed: 5 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aggregation_mode/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ sp1-sdk = "4.1.3"
2424
sp1_aggregation_program = { path = "./aggregation_programs/sp1/" }
2525
risc0-zkvm = { version = "2.0.1" }
2626
risc0_aggregation_program = { path = "./aggregation_programs/risc0/" }
27-
risc0-ethereum-contracts = { git = "https://github.com/risc0/risc0-ethereum/", tag = "v2.0.1" }
27+
risc0-ethereum-contracts = { git = "https://github.com/risc0/risc0-ethereum/", tag = "v2.0.0" }
2828

2929
[build-dependencies]
3030
sp1-build = { version = "4.1.3" }
31-
risc0-build = { version = "2.0.1", features = ["docker"] }
32-
risc0-build-ethereum = { git = "https://github.com/risc0/risc0-ethereum", tag = "v2.0.1" }
31+
risc0-build = { version = "2.0.0" }
3332

3433
[package.metadata.risc0]
3534
# Tell risc0 build to find method in ./aggregation_programs/risc0 package
@@ -39,6 +38,7 @@ methods = ["./aggregation_programs/risc0"]
3938
opt-level = 3
4039

4140
[features]
41+
default = []
4242
prove = []
43-
sp1 = []
4443
risc0 = []
44+
sp1 = []

aggregation_mode/abi/AlignedProofAggregationService.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

aggregation_mode/build.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Paths where the generated Solidity files will be written.
2-
const SOLIDITY_IMAGE_ID_PATH: &str = "../contracts/src/ImageID.sol";
3-
const SOLIDITY_ELF_PATH: &str = "../contracts/src/Elf.sol";
4-
51
fn main() {
62
sp1_build::build_program_with_args("./aggregation_programs/sp1", {
73
sp1_build::BuildArgs {
@@ -10,11 +6,5 @@ fn main() {
106
}
117
});
128

13-
let guests = risc0_build::embed_methods();
14-
15-
let solidity_opts = risc0_build_ethereum::Options::default()
16-
.with_image_id_sol_path(SOLIDITY_IMAGE_ID_PATH)
17-
.with_elf_sol_path(SOLIDITY_ELF_PATH);
18-
19-
risc0_build_ethereum::generate_solidity_files(guests.as_slice(), &solidity_opts).unwrap();
9+
risc0_build::embed_methods();
2010
}

aggregation_mode/src/aggregators/risc0_aggregator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const RISC0_AGGREGATOR_PROGRAM_ID_BYTES: [u8; 32] = {
99
let mut res = [0u8; 32];
1010
let mut i = 0;
1111
while i < 8 {
12-
let bytes = RISC0_AGGREGATOR_PROGRAM_ID[i].to_be_bytes();
12+
let bytes = RISC0_AGGREGATOR_PROGRAM_ID[i].to_le_bytes();
1313
res[i * 4] = bytes[0];
1414
res[i * 4 + 1] = bytes[1];
1515
res[i * 4 + 2] = bytes[2];

aggregation_mode/src/backend/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ use config::Config;
2525
use fetcher::{ProofsFetcher, ProofsFetcherError};
2626
use merkle_tree::compute_proofs_merkle_root;
2727
use risc0_ethereum_contracts::encode_seal;
28-
use risc0_zkvm::sha::Digestible;
2928
use sp1_sdk::HashableKey;
3029
use std::str::FromStr;
3130
use tracing::{error, info, warn};
@@ -192,14 +191,12 @@ impl ProofAggregator {
192191
let encoded_seal = encode_seal(&proof.receipt).map_err(|e| {
193192
AggregatedProofSubmissionError::Risc0EncodingSeal(e.to_string())
194193
})?;
195-
let journal_digest: [u8; 32] = proof.receipt.journal.digest().into();
196194
self.proof_aggregation_service
197195
.verifyRisc0(
198196
blob_versioned_hash.into(),
199197
encoded_seal.into(),
200198
proof.image_id.into(),
201199
proof.receipt.journal.bytes.into(),
202-
journal_digest.into(),
203200
)
204201
.sidecar(blob)
205202
.send()
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"address": {
3-
"sp1VerifierAddress": "0xB146FbFdFeC2a5182b3Cef9becE03290224256D5",
4-
"risc0VerifierAddress": "0x663F3ad617193148711d28f5334eE4Ed07016602",
5-
"alignedAggregatorAddress": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
6-
"alignedAggregatorAddressPrivateKey": "0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"
7-
},
8-
"permissions": {
9-
"owner": "0x14dC79964da2C08b23698B3D3cc7Ca32193d9955"
10-
}
2+
"address": {
3+
"sp1VerifierAddress": "0xB146FbFdFeC2a5182b3Cef9becE03290224256D5",
4+
"risc0VerifierAddress": "0x663F3ad617193148711d28f5334eE4Ed07016602",
5+
"alignedAggregatorAddress": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
6+
"alignedAggregatorAddressPrivateKey": "0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"
7+
},
8+
"permissions": {
9+
"owner": "0x14dC79964da2C08b23698B3D3cc7Ca32193d9955"
10+
}
1111
}

contracts/scripts/anvil/deploy_risc0_contracts.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ cd ../../
1313

1414
sleep 1
1515

16-
export CHAINS='DEVNET'
1716
export RPC_DEVNET='http://localhost:8545'
1817

1918
# Anvil account #2

contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

contracts/scripts/anvil/state/eigenlayer-deployed-anvil-state.json

Lines changed: 2277 additions & 2274 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)