pub struct GossipConfigSection {
pub enabled: bool,
pub bind: String,
pub seeds: Vec<String>,
pub node_name: String,
pub identity_key: Option<PathBuf>,
pub peer_keys: Vec<PathBuf>,
pub peer_identities: BTreeMap<String, PathBuf>,
}Fields§
§enabled: bool§bind: String§seeds: Vec<String>§node_name: String§identity_key: Option<PathBuf>Path to an Ed25519 PKCS#8 private key used to sign outbound gossip messages (design §6.3, FPT_ITT.1). When set, every message this node broadcasts is signed; peers with the matching public key verify and drop unauthenticated messages. When unset, gossip stays unauthenticated (backward compatible).
peer_keys: Vec<PathBuf>Paths to Ed25519 public keys (PEM/DER) trusted to sign peer gossip
messages. When identity_key is set and this is empty, a node verifies
only its own signature scheme is well-formed; populate with peer keys to
authenticate the mesh.
peer_identities: BTreeMap<String, PathBuf>Trait Implementations§
Source§impl Clone for GossipConfigSection
impl Clone for GossipConfigSection
Source§fn clone(&self) -> GossipConfigSection
fn clone(&self) -> GossipConfigSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GossipConfigSection
impl Debug for GossipConfigSection
Source§impl<'de> Deserialize<'de> for GossipConfigSection
impl<'de> Deserialize<'de> for GossipConfigSection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GossipConfigSection
impl RefUnwindSafe for GossipConfigSection
impl Send for GossipConfigSection
impl Sync for GossipConfigSection
impl Unpin for GossipConfigSection
impl UnsafeUnpin for GossipConfigSection
impl UnwindSafe for GossipConfigSection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more