Trait Hasher
Other items inlibp2p_gossipsub
pub trait Hasher { fn hash(topic_string: String) -> TopicHash; }
A generic trait that can be extended for various hashing types for a topic.
fn hash(topic_string: String) -> TopicHash
The function that takes a topic string and creates a topic hash.