[][src]Trait libp2p_gossipsub::Hasher

pub trait Hasher {
    pub fn hash(topic_string: String) -> TopicHash;
}

A generic trait that can be extended for various hashing types for a topic.

Required methods

pub fn hash(topic_string: String) -> TopicHash[src]

The function that takes a topic string and creates a topic hash.

Loading content...

Implementors

Loading content...