From 86a38e208b65f868db455e02a5c7ae43401c1d14 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Tue, 27 Dec 2022 17:31:30 +0100 Subject: [PATCH] crypto: Fix an 'unused import' warning Signed-off-by: Alexis Sellier --- radicle-crypto/src/ssh/keystore.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radicle-crypto/src/ssh/keystore.rs b/radicle-crypto/src/ssh/keystore.rs index ccede19e..57e20aa7 100644 --- a/radicle-crypto/src/ssh/keystore.rs +++ b/radicle-crypto/src/ssh/keystore.rs @@ -5,7 +5,7 @@ use std::{fs, io}; use thiserror::Error; use zeroize::Zeroizing; -use crate::{keypair, KeyPair, PublicKey, SecretKey, SharedSecret, Signature, Signer, SignerError}; +use crate::{keypair, KeyPair, PublicKey, SecretKey, Signature, Signer, SignerError}; /// A secret key passphrase. pub type Passphrase = Zeroizing; @@ -155,10 +155,10 @@ impl Signer for MemorySigner { #[cfg(feature = "cyphernet")] impl cyphernet::crypto::Ecdh for MemorySigner { type Pk = PublicKey; - type Secret = SharedSecret; + type Secret = crate::SharedSecret; type Err = ed25519_compact::Error; - fn ecdh(&self, other: &PublicKey) -> Result { + fn ecdh(&self, other: &PublicKey) -> Result { let pk = ed25519_compact::x25519::PublicKey::from_ed25519(other)?; let sk = ed25519_compact::x25519::SecretKey::from_ed25519(&self.secret)?; let ss = pk.dh(&sk)?;