2 Commits eaf9aeb61e ... 5fff55a4b3

Author SHA1 Message Date
  Ian Goldberg 5fff55a4b3 Add functions for serializing and deserializing private keys 5 months ago
  Ian Goldberg eaf9aeb61e Add functions for serializing and deserializing private keys 5 months ago
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/lib.rs

+ 5 - 0
src/lib.rs

@@ -1040,6 +1040,11 @@ pub mod ffi
         fn DeserializePublicKeyFromFile(publicKeyLocation: &CxxString,
         fn DeserializePublicKeyFromFile(publicKeyLocation: &CxxString,
                                         publicKey: Pin<&mut PublicKeyDCRTPoly>,
                                         publicKey: Pin<&mut PublicKeyDCRTPoly>,
                                         serialMode: SerialMode) -> bool;
                                         serialMode: SerialMode) -> bool;
+        fn SerializePrivateKeyToFile(privateKeyLocation: &CxxString, privateKey: &PrivateKeyDCRTPoly,
+                                    serialMode: SerialMode) -> bool;
+        fn DeserializePrivateKeyFromFile(privateKeyLocation: &CxxString,
+                                        privateKey: Pin<&mut PrivateKeyDCRTPoly>,
+                                        serialMode: SerialMode) -> bool;
     }
     }
 }
 }