diff options
author | Katharina Fey <kookie@spacekookie.de> | 2018-04-09 18:06:14 +0200 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2018-04-09 18:06:14 +0200 |
commit | 95b91faf8e280757e9a2de3fec3c308c65de1d5d (patch) | |
tree | 86bbb4e2802c079deaf3c2ac35d24f6d5c75eb5b /lockchain-core/src/vault.rs | |
parent | 194b9fbf7ebc6cf054bc283cf5a6b2e0c62c9023 (diff) |
Version that goes on crates.io
Diffstat (limited to '')
-rw-r--r-- | lockchain-core/src/vault.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lockchain-core/src/vault.rs b/lockchain-core/src/vault.rs index 30300c9..19fa8dd 100644 --- a/lockchain-core/src/vault.rs +++ b/lockchain-core/src/vault.rs @@ -47,7 +47,7 @@ impl Vault { let mut me = Vault { name: String::from(name), path: buffer.to_str().unwrap().to_owned(), - primary_key: Key::new(), + primary_key: Key::generate(), records: HashMap::new(), }; @@ -105,8 +105,7 @@ impl Vault { return Vault { name: String::from(name), path: "".to_owned(), - primary_key: Key::new(), - // crypto: crypto, + primary_key: Key::generate(), records: record_map, }; } |