Skip to content

Commit 68418b6

Browse files
committed
chore: build program and update chunk aggregator program id in root aggregators
1 parent 1bea52d commit 68418b6

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

aggregation_mode/aggregation_programs/risc0/src/root_aggregator_main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ use risc0_zkvm::guest::env;
66

77
risc0_zkvm::guest::entry!(main);
88

9-
pub const CHUNK_AGGREGATOR_PROGRAM_IMAGE_ID: [u8; 32] = [0u8; 32];
9+
// Generated with `make agg_mode_write_program_ids` and copied from program_ids.json
10+
pub const CHUNK_AGGREGATOR_PROGRAM_IMAGE_ID: [u8; 32] = [200, 155, 105, 236, 200, 48, 124, 101, 178, 175, 101, 213, 67, 76, 52, 119, 110, 9, 50, 215, 92, 126, 5, 172, 211, 193, 88, 83, 150, 62, 51, 74];
1011

1112
fn main() {
1213
let input = env::read::<RootAggregatorInput>();

aggregation_mode/aggregation_programs/sp1/src/root_aggregator_main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ use lambdaworks_crypto::merkle_tree::merkle::MerkleTree;
55
use sha2::{Digest, Sha256};
66
use sp1_aggregation_program::{Hash32, RootAggregatorInput};
77

8-
pub const CHUNK_AGGREGATOR_PROGRAM_VK_HASH: [u32; 8] = [0, 0, 0, 0, 0, 0, 0, 0];
8+
// Generated with `make agg_mode_write_program_ids` and copied from program_ids.json
9+
pub const CHUNK_AGGREGATOR_PROGRAM_VK_HASH: [u32; 8] = [899813587, 1068831252, 2000190855, 1210454658, 1057127892, 56287617, 1572193608, 1379769886];
910

1011
pub fn main() {
1112
let input = sp1_zkvm::io::read::<RootAggregatorInput>();

aggregation_mode/build.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,15 @@ fn main() {
1919

2020
// With this containerized build process, we ensure that all builds of the guest code,
2121
// regardless of the machine or local environment, will produce the same ImageID
22-
/*
2322
let docker_options = DockerOptionsBuilder::default().build().unwrap();
2423
// Reference: https://github.com/risc0/risc0/blob/main/risc0/build/src/config.rs#L73-L90
2524
let guest_options = GuestOptionsBuilder::default()
2625
.use_docker(docker_options)
2726
.build()
2827
.unwrap();
28+
2929
risc0_build::embed_methods_with_options(HashMap::from([(
3030
"risc0_aggregation_program",
3131
guest_options,
3232
)]));
33-
*/
3433
}

aggregation_mode/programs_ids.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"risc0_chunk_aggregator_image_id": "0x0184e25336a5ce1757febbca2ec2cd9ae0e7de82389b8d4e4189a044f2adceef",
3-
"risc0_chunk_aggregator_image_id_bytes": "[1, 132, 226, 83, 54, 165, 206, 23, 87, 254, 187, 202, 46, 194, 205, 154, 224, 231, 222, 130, 56, 155, 141, 78, 65, 137, 160, 68, 242, 173, 206, 239]",
4-
"risc0_root_aggregator_image_id": "0x4e2bb70eabcbf1a1f2cda2dd46d84f77014489f938e860d64114df01012cb379",
2+
"risc0_chunk_aggregator_image_id": "0xc89b69ecc8307c65b2af65d5434c34776e0932d75c7e05acd3c15853963e334a",
3+
"risc0_chunk_aggregator_image_id_bytes": "[200, 155, 105, 236, 200, 48, 124, 101, 178, 175, 101, 213, 67, 76, 52, 119, 110, 9, 50, 215, 92, 126, 5, 172, 211, 193, 88, 83, 150, 62, 51, 74]",
4+
"risc0_root_aggregator_image_id": "0x3452ff90f5fa471705fd6a213d7cf126c372658ef759271ce687ef1161cceb8a",
55
"sp1_chunk_aggregator_vk_hash": "0x006b4421a6fed44853b9c3ec3c82612827e04fba80d6b8606edae2a4523d9e1e",
66
"sp1_chunk_aggregator_vk_hash_words": "[899813587, 1068831252, 2000190855, 1210454658, 1057127892, 56287617, 1572193608, 1379769886]",
7-
"sp1_root_aggregator_vk_hash": "0x00a2d19dfab6d777d6cc83ca708170098e1ba92ce2a50b23d980f7e3cff1b36e"
7+
"sp1_root_aggregator_vk_hash": "0x004b2cdc6c24f614ac3a66886a6bd96e0b2a6e0e1151b6251c8ba0ec4e8f19d1"
88
}

0 commit comments

Comments
 (0)