Trait libp2p_pubsub_core::Hasher
source · pub trait Hasher {
// Required method
fn hash(topic: String) -> TopicHash;
}
Expand description
A generic trait that can be extended for various hashing frame for a topic.
pub trait Hasher {
// Required method
fn hash(topic: String) -> TopicHash;
}
A generic trait that can be extended for various hashing frame for a topic.