fix comp now?

This commit is contained in:
6arelyFuture 2022-09-02 18:08:55 +02:00
parent 2cea0ff173
commit d2623030fe
Signed by: Future
GPG Key ID: FA77F074E98D98A5

View File

@ -1,7 +1,6 @@
#include <std_include.hpp> #include <std_include.hpp>
#include "crypto_key.hpp" #include "crypto_key.hpp"
#include "console.hpp"
#include <utils/io.hpp> #include <utils/io.hpp>
@ -45,10 +44,7 @@ utils::cryptography::ecc::key load_or_generate_key() {
utils::cryptography::ecc::key get_key_internal() { utils::cryptography::ecc::key get_key_internal() {
auto key = load_or_generate_key(); auto key = load_or_generate_key();
if (!utils::io::write_file("./public.key", key.get_public_key())) { utils::io::write_file("./public.key", key.get_public_key());
console::info("Failed to write public key!");
}
return key; return key;
} }
} // namespace } // namespace