diff --git a/Cargo.lock b/Cargo.lock index 13099d14ac..f48408c270 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4936,6 +4936,7 @@ dependencies = [ "futures", "hotshot-types", "serde", + "serde_json", "tagged-base64", "thiserror 1.0.69", "tide-disco", diff --git a/hotshot-builder-api/Cargo.toml b/hotshot-builder-api/Cargo.toml index a948e2b270..8344032d2b 100644 --- a/hotshot-builder-api/Cargo.toml +++ b/hotshot-builder-api/Cargo.toml @@ -13,6 +13,7 @@ derive_more = { workspace = true, features = ["from"] } futures = { workspace = true } hotshot-types = { workspace = true } serde = { workspace = true } +serde_json = { workspace = true } tagged-base64 = { workspace = true } thiserror = { workspace = true } tide-disco = { workspace = true } diff --git a/hotshot-builder-api/src/v0_1/block_info.rs b/hotshot-builder-api/src/v0_1/block_info.rs index 0006140900..f0d9219d88 100644 --- a/hotshot-builder-api/src/v0_1/block_info.rs +++ b/hotshot-builder-api/src/v0_1/block_info.rs @@ -48,6 +48,8 @@ impl AvailableBlockData { #[serde(bound = "")] pub struct AvailableBlockHeaderInput { pub vid_commitment: VidCommitment, + #[serde(default)] + pub vid_precompute_data: Option, // signature over vid_commitment, BlockPayload::Metadata, and offered_fee pub fee_signature: <::BuilderSignatureKey as BuilderSignatureKey>::BuilderSignature, diff --git a/hotshot-builder-core-refactored/src/service.rs b/hotshot-builder-core-refactored/src/service.rs index 046af22089..5d27b2611f 100644 --- a/hotshot-builder-core-refactored/src/service.rs +++ b/hotshot-builder-core-refactored/src/service.rs @@ -606,6 +606,7 @@ where let response = AvailableBlockHeaderInput:: { vid_commitment, + vid_precompute_data: None, fee_signature: signature_over_fee_info, message_signature: signature_over_vid_commitment, sender: self.builder_keys.0.clone(), diff --git a/hotshot-builder-core/src/service.rs b/hotshot-builder-core/src/service.rs index ab41c0c5a2..efe47cc626 100644 --- a/hotshot-builder-core/src/service.rs +++ b/hotshot-builder-core/src/service.rs @@ -998,6 +998,7 @@ impl ProxyGlobalState { let response = AvailableBlockHeaderInput:: { vid_commitment, + vid_precompute_data: None, fee_signature: signature_over_fee_info, message_signature: signature_over_vid_commitment, sender: pub_key.clone(), diff --git a/hotshot-testing/src/block_builder/mod.rs b/hotshot-testing/src/block_builder/mod.rs index 10e1cf6aed..e1c1d06738 100644 --- a/hotshot-testing/src/block_builder/mod.rs +++ b/hotshot-testing/src/block_builder/mod.rs @@ -228,6 +228,7 @@ where }; let header_input = AvailableBlockHeaderInput { vid_commitment, + vid_precompute_data: None, message_signature: signature_over_vid_commitment.clone(), fee_signature: signature_over_fee_info, sender: pub_key, diff --git a/sequencer-sqlite/Cargo.lock b/sequencer-sqlite/Cargo.lock index 7b6c26a3aa..274d52ead5 100644 --- a/sequencer-sqlite/Cargo.lock +++ b/sequencer-sqlite/Cargo.lock @@ -4744,6 +4744,7 @@ dependencies = [ "futures", "hotshot-types", "serde", + "serde_json", "tagged-base64", "thiserror 1.0.69", "tide-disco",