Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version = "0.5.79" # same as `hotshot`, but workspace subcrate can also release its own version
authors = ["Espresso Systems <hello@espressosys.com>"]
edition = "2021"
rust-version = "1.76.0"
rust-version = "1.80.0"
homepage = "https://github.com/EspressoSystems/HotShot"
documentation = "https://hotshot.docs.espressosys.com"
repository = "https://github.com/EspressoSystems/HotShot"
Expand Down
4 changes: 2 additions & 2 deletions crates/examples/combined/all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use cdn_broker::{reexports::def::hook::NoMessageHook, Broker};
use cdn_marshal::Marshal;
use hotshot::{
helpers::initialize_logging,
traits::implementations::{KeyPair, TestingDef, WrappedSignatureKey},
traits::implementations::{HotShotMessageHook, KeyPair, TestingDef, WrappedSignatureKey},
types::SignatureKey,
};
use hotshot_example_types::{node_types::TestVersions, state_types::TestTypes};
Expand Down Expand Up @@ -82,7 +82,7 @@ async fn main() {
private_key: broker_private_key.clone(),
},

user_message_hook: NoMessageHook,
user_message_hook: HotShotMessageHook::default(),
broker_message_hook: NoMessageHook,

metrics_bind_endpoint: None,
Expand Down
4 changes: 2 additions & 2 deletions crates/examples/push-cdn/all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use cdn_broker::{
use cdn_marshal::Marshal;
use hotshot::{
helpers::initialize_logging,
traits::implementations::{TestingDef, WrappedSignatureKey},
traits::implementations::{HotShotMessageHook, TestingDef, WrappedSignatureKey},
types::SignatureKey,
};
use hotshot_example_types::{node_types::TestVersions, state_types::TestTypes};
Expand Down Expand Up @@ -93,7 +93,7 @@ async fn main() {
private_key: broker_private_key.clone(),
},

user_message_hook: NoMessageHook,
user_message_hook: HotShotMessageHook::default(),
broker_message_hook: NoMessageHook,

metrics_bind_endpoint: None,
Expand Down
6 changes: 4 additions & 2 deletions crates/examples/push-cdn/broker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
use anyhow::Result;
use cdn_broker::{reexports::def::hook::NoMessageHook, Broker, Config};
use clap::Parser;
use hotshot::traits::implementations::{KeyPair, ProductionDef, WrappedSignatureKey};
use hotshot::traits::implementations::{
HotShotMessageHook, KeyPair, ProductionDef, WrappedSignatureKey,
};
use hotshot_example_types::node_types::TestTypes;
use hotshot_types::traits::{node_implementation::NodeType, signature_key::SignatureKey};
use sha2::Digest;
Expand Down Expand Up @@ -103,7 +105,7 @@ async fn main() -> Result<()> {
private_key,
},

user_message_hook: NoMessageHook,
user_message_hook: HotShotMessageHook::default(),
broker_message_hook: NoMessageHook,

public_bind_endpoint: args.public_bind_endpoint,
Expand Down
1 change: 1 addition & 0 deletions crates/hotshot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ rand = { workspace = true }
serde = { workspace = true, features = ["rc"] }
sha2 = { workspace = true }
time = { workspace = true }
gcr = "0.1"

tokio = { workspace = true }
tracing = { workspace = true }
Expand Down
6 changes: 4 additions & 2 deletions crates/hotshot/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ pub mod implementations {
},
memory_network::{MasterMap, MemoryNetwork},
push_cdn_network::{
CdnMetricsValue, KeyPair, ProductionDef, PushCdnNetwork, TestingDef, Topic as CdnTopic,
WrappedSignatureKey,
definition::message_hook::HotShotMessageHook,
definition::signature_key::WrappedSignatureKey, definition::ProductionDef,
definition::TestingDef, definition::Topic as CdnTopic, metrics::CdnMetricsValue,
KeyPair, PushCdnNetwork,
},
};
}
Loading