X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fkey.cpp;h=afe63cb4a318e5ae286089e5000fd2d1b5aa46d3;hp=adafc32a7f9b28b31b1546cba43428106046980c;hb=27275f6bf78b909b253530f77e00206924e54130;hpb=86a0b22dd1b6f8f108bd2e7184bfecb9a23c52b2 diff --git a/src/key.cpp b/src/key.cpp index adafc32..afe63cb 100644 --- a/src/key.cpp +++ b/src/key.cpp @@ -6,6 +6,7 @@ #include #include +#include #include "key.h" #include "base58.h" @@ -1092,3 +1093,18 @@ bool CMalleableKeyView::CheckKeyVariant(const CPubKey &R, const CPubKey &vchPubK return true; } +//// Asymmetric encryption + +bool CPubKey::EncryptData(const std::vector& data, std::vector& encrypted) +{ + // TODO + + return true; +} + +bool CKey::DecryptData(const std::vector& encrypted, std::vector& data) +{ + // TODO + + return true; +}