aboutsummaryrefslogtreecommitdiffstats
path: root/src/handshake/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/handshake/types.rs')
-rw-r--r--src/handshake/types.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/handshake/types.rs b/src/handshake/types.rs
index 7b190ec..ba71ec4 100644
--- a/src/handshake/types.rs
+++ b/src/handshake/types.rs
@@ -1,6 +1,8 @@
use std::error::Error;
use std::fmt;
+use x25519_dalek::PublicKey;
+
use crate::types::KeyPair;
/* Internal types for the noise IKpsk2 implementation */
@@ -77,10 +79,10 @@ impl Error for HandshakeError {
}
}
-pub type Output<T> = (
- Option<T>, // external identifier associated with peer
- Option<Vec<u8>>, // message to send
- Option<KeyPair>, // resulting key-pair of successful handshake
+pub type Output = (
+ Option<PublicKey>, // external identifier associated with peer
+ Option<Vec<u8>>, // message to send
+ Option<KeyPair>, // resulting key-pair of successful handshake
);
// preshared key