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;