Pemstore no longer creating directory for config file

This commit is contained in:
Jedrzej Stuczynski
2020-01-30 16:08:30 +00:00
parent e97102d3e4
commit 32f067256b
-2
View File
@@ -61,8 +61,6 @@ impl PemStore {
// KeyPairs that we want to persist (e.g. validator keypairs, or keys for
// signing vs encryption). However, for the moment, it does the job.
pub fn write_identity(&self, key_pair: MixIdentityKeyPair) -> io::Result<()> {
std::fs::create_dir_all(self.config_dir.clone())?;
let private_key = key_pair.private_key();
let public_key = key_pair.public_key();
self.write_pem_file(