pub fn topic_id(name: &str) -> TopicId
Compute a TopicId from a topic name string.
TopicId
use ma_core::topic::topic_id; let id = topic_id("/ma/broadcast/0.0.1"); assert_eq!(id, *blake3::hash(b"/ma/broadcast/0.0.1").as_bytes());