X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fkey.h;h=a3b23fec4f087abe21d0d6dd505b187c72be9927;hb=27275f6bf78b909b253530f77e00206924e54130;hp=c1890904cc4c284bc03f51dd11d386fa156a55ae;hpb=91e95a40e7a818d671eac2549830dd7dfe5fa21b;p=novacoin.git 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