X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fkey.h;h=a3b23fec4f087abe21d0d6dd505b187c72be9927;hp=c1890904cc4c284bc03f51dd11d386fa156a55ae;hb=27275f6bf78b909b253530f77e00206924e54130;hpb=86a0b22dd1b6f8f108bd2e7184bfecb9a23c52b2 diff --git a/src/key.h b/src/key.h index c189090..a3b23fe 100644 --- a/src/key.h +++ b/src/key.h @@ -97,6 +97,9 @@ public: std::vector Raw() const { return vchPubKey; } + + // Encrypt data + bool EncryptData(const std::vector& data, std::vector& encrypted); }; @@ -164,6 +167,9 @@ public: // Reserialize to DER static bool ReserealizeSignature(std::vector& vchSig); + + // Decrypt data + bool DecryptData(const std::vector& encrypted, std::vector& data); }; class CPoint