logo
pub struct X25519Spec(_);
Expand description

A X25519 key.

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Noise protocols for X25519 with libp2p-spec compliant signatures.

Note: Only the XX handshake pattern is currently guaranteed to be interoperable with other libp2p implementations.

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.

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

👎 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

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

Encode the hex strict representing self into the result. Lower case letters are used (e.g. f9b4ca) Read more

Encode the hex strict representing self into the result. Upper case letters are used (e.g. F9B4CA) Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.