iroh-topic-tracker-0.1.0 has been yanked.
Iroh Topic Tracker
Tracker for Iroh NodeId's in GossipSub Topics made easy. The lib comes with a hosted iroh-topic-tracker BOOTSTRAP_NODE.
Try it
Get the last connected NodeId's for a given gossip topic.
cargo run --example client
Run your own dedicated topic tracker node.
cargo run --example server
(adjust the secret.rs SecretKey and change the BOOTSTRAP_NODES public key in topic_tracker.rs (line ~33) -> impl TopicTracker)
Build server for release
cargo build --release --example server
Lib usage
See examples but tldr:
Example Minimal
use TopicTracker;
let topic = from_passphrase;
let topic_tracker = new;
topic_tracker.get_topic_nodes.await?;
Example Minimally more
use TopicTracker;
let topic = from_passphrase;
let endpoint = builder
.secret_key
.discovery_n0
.discovery_dht
.bind
.await?;
let topic_tracker = new;
let router = builder
.accept
.spawn
.await?;
topic_tracker.get_topic_nodes.await?;