Struct libp2p_noise::X25519

source ·
pub struct X25519(_);
Expand description

A X25519 key.

Trait Implementations§

Converts this type into a shared reference of the (usually inferred) input type.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Legacy Noise protocol for X25519.

Note: This Protocol provides no configuration that is interoperable with other libp2p implementations. See crate::X25519Spec instead.

The protocol parameters for the IK handshake pattern.
The protocol parameters for the IX handshake pattern.
The protocol parameters for the XX handshake pattern.
Construct a DH public key from a byte slice.
👎Deprecated
Determines whether the authenticity of the given DH static public key and public identity key is linked, i.e. that proof of ownership of a secret key for the static DH public key implies that the key is authentic w.r.t. the given public identity key. Read more
Verifies that a given static DH public key is authentic w.r.t. a given public identity key in the context of an optional signature. Read more
Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The protocol name as bytes. Transmitted on the network. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.