2 Комити 2e3a9f909c ... eaf9aeb61e

Аутор SHA1 Порука Датум
  Ian Goldberg eaf9aeb61e Add functions for serializing and deserializing private keys пре 6 месеци
  Ian Goldberg 2e3a9f909c Add functions for serializing and deserializing private keys пре 6 месеци
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      src/PrivateKey.h

+ 5 - 0
src/PrivateKey.h

@@ -14,6 +14,11 @@ class PrivateKeyDCRTPoly final
 {
     std::shared_ptr<PrivateKeyImpl> m_privateKey;
 public:
+    friend bool SerializePrivateKeyToFile(const std::string& privateKeyLocation,
+        const PrivateKeyDCRTPoly& privateKey, const SerialMode serialMode);
+    friend bool DeserializePrivateKeyFromFile(const std::string& privateKeyLocation,
+        PrivateKeyDCRTPoly& privateKey, const SerialMode serialMode);
+
     PrivateKeyDCRTPoly() = default;
     explicit PrivateKeyDCRTPoly(const std::shared_ptr<PrivateKeyImpl>& privateKey);
     PrivateKeyDCRTPoly(const PrivateKeyDCRTPoly&) = delete;