Struct libp2p_noise::X25519 [−][src]
pub struct X25519(_);
A X25519 key.
Trait Implementations
impl Protocol<X25519> for X25519
[src]
impl Protocol<X25519> for X25519
[src]Legacy Noise protocol for X25519.
Note: This Protocol
provides no configuration that
is interoperable with other libp2p implementations.
See crate::X25519Spec
instead.
fn params_ik() -> ProtocolParams
[src]
fn params_ix() -> ProtocolParams
[src]
fn params_xx() -> ProtocolParams
[src]
fn public_from_bytes(bytes: &[u8]) -> Result<PublicKey<X25519>, NoiseError>
[src]
fn linked(id_pk: &PublicKey, dh_pk: &PublicKey<X25519>) -> bool
[src]
fn verify(
id_pk: &PublicKey,
dh_pk: &PublicKey<C>,
sig: &Option<Vec<u8>>
) -> bool where
C: AsRef<[u8]>,
[src]
id_pk: &PublicKey,
dh_pk: &PublicKey<C>,
sig: &Option<Vec<u8>>
) -> bool where
C: AsRef<[u8]>,
fn sign(id_keys: &Keypair, dh_pk: &PublicKey<C>) -> Result<Vec<u8>, NoiseError> where
C: AsRef<[u8]>,
[src]
C: AsRef<[u8]>,