Struct libp2p_noise::X25519Spec [−][src]
pub struct X25519Spec(_);
A X25519 key.
Trait Implementations
impl Clone for X25519Spec
[src]
impl Clone for X25519Spec
[src]fn clone(&self) -> X25519Spec
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Protocol<X25519Spec> for X25519Spec
[src]
impl Protocol<X25519Spec> for X25519Spec
[src]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.
fn params_ik() -> ProtocolParams
[src]
fn params_ix() -> ProtocolParams
[src]
fn params_xx() -> ProtocolParams
[src]
fn public_from_bytes(bytes: &[u8]) -> Result<PublicKey<X25519Spec>, NoiseError>
[src]
fn verify(
id_pk: &PublicKey,
dh_pk: &PublicKey<X25519Spec>,
sig: &Option<Vec<u8>>
) -> bool
[src]
id_pk: &PublicKey,
dh_pk: &PublicKey<X25519Spec>,
sig: &Option<Vec<u8>>
) -> bool
fn sign(
id_keys: &Keypair,
dh_pk: &PublicKey<X25519Spec>
) -> Result<Vec<u8>, NoiseError>
[src]
id_keys: &Keypair,
dh_pk: &PublicKey<X25519Spec>
) -> Result<Vec<u8>, NoiseError>
fn linked(id_pk: &PublicKey, dh_pk: &PublicKey<C>) -> bool
[src]
impl Zeroize for X25519Spec
[src]
impl Zeroize for X25519Spec
[src]