mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-12 17:41:22 +00:00
protocols/gossipsub: Add message signing and verification configuration (#1583)
This adds optional message signing and verification to the gossipsub protocol as per the libp2p specifications. In addition this commit: - Removes the LruCache received cache and simply uses the memcache in it's place. - Send subscriptions to all peers - Prevent invalid messages from being gossiped - Send grafts when subscriptions are added to the mesh Co-authored-by: Max Inden <mail@max-inden.de> Co-authored-by: Rüdiger Klaehn <rklaehn@protonmail.com> Co-authored-by: Rüdiger Klaehn <rklaehn@gmail.com>
This commit is contained in:
@ -135,6 +135,7 @@
|
||||
//! println!("Listening on {:?}", addr);
|
||||
//! ```
|
||||
|
||||
pub mod error;
|
||||
pub mod protocol;
|
||||
|
||||
mod behaviour;
|
||||
@ -147,7 +148,7 @@ mod rpc_proto {
|
||||
include!(concat!(env!("OUT_DIR"), "/gossipsub.pb.rs"));
|
||||
}
|
||||
|
||||
pub use self::behaviour::{Gossipsub, GossipsubEvent, GossipsubRpc};
|
||||
pub use self::config::{GossipsubConfig, GossipsubConfigBuilder};
|
||||
pub use self::behaviour::{Gossipsub, GossipsubEvent, GossipsubRpc, MessageAuthenticity};
|
||||
pub use self::config::{GossipsubConfig, GossipsubConfigBuilder, ValidationMode};
|
||||
pub use self::protocol::{GossipsubMessage, MessageId};
|
||||
pub use self::topic::{Topic, TopicHash};
|
||||
|
Reference in New Issue
Block a user