Enum libp2p_gossipsub::MessageAuthenticity [−][src]
Determines if published messages should be signed or not.
Without signing, a number of privacy preserving modes can be selected.
NOTE: The default validation settings are to require signatures. The ValidationMode
should be updated in the GossipsubConfig
to allow for unsigned messages.
Variants
Signed(Keypair)
Message signing is enabled. The author will be the owner of the key and the sequence number will be a random number.
Author(PeerId)
Message signing is disabled.
The specified PeerId
will be used as the author of all published messages. The sequence
number will be randomized.
Message signing is disabled.
A random PeerId
will be used when publishing each message. The sequence number will be
randomized.
Message signing is disabled.
The author of the message and the sequence numbers are excluded from the message.
NOTE: Excluding these fields may make these messages invalid by other nodes who
enforce validation of these fields. See ValidationMode
in the GossipsubConfig
for how to customise this for rust-libp2p gossipsub. A custom message_id
function will need to be set to prevent all messages from a peer being filtered
as duplicates.
Trait Implementations
impl Clone for MessageAuthenticity
[src]
fn clone(&self) -> MessageAuthenticity
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for MessageAuthenticity
impl Send for MessageAuthenticity
impl Sync for MessageAuthenticity
impl Unpin for MessageAuthenticity
impl UnwindSafe for MessageAuthenticity
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,