distributed_topic_tracker/
lib.rs1mod crypto;
2mod dht;
3
4#[cfg(feature = "iroh-gossip")]
5mod gossip;
6#[cfg(feature = "iroh-gossip")]
7pub use gossip::{
8 AutoDiscoveryGossip, Bootstrap, BubbleMerge, GossipReceiver, GossipSender, MessageOverlapMerge,
9 Publisher, Topic, TopicId, GossipRecordContent
10};
11
12pub use crypto::{
13 DefaultSecretRotation, EncryptedRecord, Record, RecordPublisher, RecordTopic, RotationHandle,
14 SecretRotation, encryption_keypair, salt, signing_keypair,
15};
16pub use dht::Dht;
17pub const MAX_BOOTSTRAP_RECORDS: usize = 10;
18
19pub fn unix_minute(minute_offset: i64) -> u64 {
20 ((chrono::Utc::now().timestamp() as f64 / 60.0f64).floor() as i64 + minute_offset) as u64
21}