diff options
author | Katharina Fey <kookie@spacekookie.de> | 2019-04-22 02:17:36 +0200 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2019-04-22 02:17:36 +0200 |
commit | 16522d90a7ad626bb36d57fbc24076bb01ce8616 (patch) | |
tree | a3b3a5bb6a5b1826ebe4807e40df1be45ff9b292 /lockchain-core/src/crypto | |
parent | f12fae4479c5b97ab37823d7aa58d9156e2fc3ad (diff) |
Running rustfmt
Diffstat (limited to 'lockchain-core/src/crypto')
-rw-r--r-- | lockchain-core/src/crypto/data.rs | 4 | ||||
-rw-r--r-- | lockchain-core/src/crypto/encoding.rs | 2 | ||||
-rw-r--r-- | lockchain-core/src/crypto/mod.rs | 11 |
3 files changed, 8 insertions, 9 deletions
diff --git a/lockchain-core/src/crypto/data.rs b/lockchain-core/src/crypto/data.rs index f1ed15c..4655a02 100644 --- a/lockchain-core/src/crypto/data.rs +++ b/lockchain-core/src/crypto/data.rs @@ -1,5 +1,5 @@ use crate::traits::AutoEncoder; -use serde::{Serialize, Deserialize}; +use serde::{Deserialize, Serialize}; /// Representation of encrypted data as an enecoded format /// @@ -13,4 +13,4 @@ pub struct PackedData { pub data: Vec<u8>, } -impl AutoEncoder for PackedData {}
\ No newline at end of file +impl AutoEncoder for PackedData {} diff --git a/lockchain-core/src/crypto/encoding.rs b/lockchain-core/src/crypto/encoding.rs index 0c49490..bc72c02 100644 --- a/lockchain-core/src/crypto/encoding.rs +++ b/lockchain-core/src/crypto/encoding.rs @@ -21,4 +21,4 @@ pub fn encode_hex(data: &str) -> String { } return s; -}
\ No newline at end of file +} diff --git a/lockchain-core/src/crypto/mod.rs b/lockchain-core/src/crypto/mod.rs index 6a1c45e..c0c0c59 100644 --- a/lockchain-core/src/crypto/mod.rs +++ b/lockchain-core/src/crypto/mod.rs @@ -1,24 +1,23 @@ //! Shared cryptographic primitives and utilities -//! -//! - +//! +//! /// We re-export keybob's API here mod keys { - pub use keybob::{Key, KeyType}; use crate::traits::{AutoEncoder, Encryptable}; + pub use keybob::{Key, KeyType}; impl AutoEncoder for Key {} impl AutoEncoder for KeyType {} - + impl Encryptable for Key {} impl Encryptable for KeyType {} } mod data; pub mod encoding; -pub mod random; pub mod hashing; +pub mod random; pub use self::data::PackedData; pub use self::keys::{Key, KeyType}; |