Skip to content

Commit

Permalink
optional vid precompute data
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-maron committed Feb 14, 2025
1 parent 56871de commit 8bd597a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hotshot-builder-api/src/v0_1/block_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ impl<TYPES: NodeType> AvailableBlockData<TYPES> {
#[serde(bound = "")]
pub struct AvailableBlockHeaderInput<TYPES: NodeType> {
pub vid_commitment: VidCommitment,
#[serde(default)]
pub vid_precompute_data: Option<serde_json::Value>,
// signature over vid_commitment, BlockPayload::Metadata, and offered_fee
pub fee_signature:
<<TYPES as NodeType>::BuilderSignatureKey as BuilderSignatureKey>::BuilderSignature,
Expand Down
1 change: 1 addition & 0 deletions hotshot-builder-core-refactored/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ where

let response = AvailableBlockHeaderInput::<Types> {
vid_commitment,
vid_precompute_data: None,
fee_signature: signature_over_fee_info,
message_signature: signature_over_vid_commitment,
sender: self.builder_keys.0.clone(),
Expand Down
1 change: 1 addition & 0 deletions hotshot-builder-core/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,7 @@ impl<Types: NodeType> ProxyGlobalState<Types> {

let response = AvailableBlockHeaderInput::<Types> {
vid_commitment,
vid_precompute_data: None,
fee_signature: signature_over_fee_info,
message_signature: signature_over_vid_commitment,
sender: pub_key.clone(),
Expand Down
1 change: 1 addition & 0 deletions hotshot-testing/src/block_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8bd597a

Please sign in to comment.