aboutsummaryrefslogtreecommitdiff
path: root/lockchain-core/src/crypto
diff options
context:
space:
mode:
authorKatharina <kookie@spacekookie.de>2019-04-22 02:02:08 +0200
committerGitHub <noreply@github.com>2019-04-22 02:02:08 +0200
commitf12fae4479c5b97ab37823d7aa58d9156e2fc3ad (patch)
treed3cd6576730c904c6d798c956295a989723a59a3 /lockchain-core/src/crypto
parent9ceda952a1c0d42b11a67dd7d00178c720f9c601 (diff)
Updating crates to 2018 edition (#9)
* Updating main README * Updating lock file * Updating crate ecosystem to Rust 2018 edition
Diffstat (limited to 'lockchain-core/src/crypto')
-rw-r--r--lockchain-core/src/crypto/data.rs5
-rw-r--r--lockchain-core/src/crypto/mod.rs2
2 files changed, 4 insertions, 3 deletions
diff --git a/lockchain-core/src/crypto/data.rs b/lockchain-core/src/crypto/data.rs
index 2ee8a9a..f1ed15c 100644
--- a/lockchain-core/src/crypto/data.rs
+++ b/lockchain-core/src/crypto/data.rs
@@ -1,7 +1,8 @@
-use traits::AutoEncoder;
+use crate::traits::AutoEncoder;
+use serde::{Serialize, Deserialize};
/// Representation of encrypted data as an enecoded format
-///
+///
/// Includes all cryptographic state primitives that are
/// required to send the data over a network and decrypt on
/// the other side of a pipe.
diff --git a/lockchain-core/src/crypto/mod.rs b/lockchain-core/src/crypto/mod.rs
index 2090e69..6a1c45e 100644
--- a/lockchain-core/src/crypto/mod.rs
+++ b/lockchain-core/src/crypto/mod.rs
@@ -6,7 +6,7 @@
/// We re-export keybob's API here
mod keys {
pub use keybob::{Key, KeyType};
- use traits::{AutoEncoder, Encryptable};
+ use crate::traits::{AutoEncoder, Encryptable};
impl AutoEncoder for Key {}
impl AutoEncoder for KeyType {}