Skip to content

Commit

Permalink
Merge pull request #1 from rozbb/master
Browse files Browse the repository at this point in the history
Use DeserializeOwned in AuthKeyExchange trait as opposed to HRTB.
  • Loading branch information
quininer committed Jan 16, 2019
2 parents c0924ce + 5bb89cd commit 2948717
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/traits.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use rand::{ Rng, CryptoRng };
use serde::{ Serialize, Deserialize };
use serde::{ Serialize, de::DeserializeOwned };
use crate::Envelope;


pub trait AuthKeyExchange {
type PrivateKey: Serialize + for<'a> Deserialize<'a>;
type PublicKey: Serialize + for<'a> Deserialize<'a> + Clone;
type EphemeralKey: Serialize + for<'a> Deserialize<'a>;
type Message: Serialize + for<'a> Deserialize<'a> + Clone;
type PrivateKey: Serialize + DeserializeOwned;
type PublicKey: Serialize + DeserializeOwned + Clone;
type EphemeralKey: Serialize + DeserializeOwned;
type Message: Serialize + DeserializeOwned + Clone;

const SHARED_LENGTH: usize;

Expand Down

0 comments on commit 2948717

Please sign in to comment.