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)?;