X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fkey.h;fp=src%2Fkey.h;h=8dd8f16d49496c5cd693b856b91fc5cf7bfa37b7;hp=cb5a7122c27aaba0ed30d44366c5bfeacc2ddc38;hb=ee8b5cb4e89ba6775e5c5d71f1c1b720ab6fe2ce;hpb=59b5e172f9fed2d27202168630550e21ef995105 diff --git a/src/key.h b/src/key.h index cb5a712..8dd8f16 100644 --- a/src/key.h +++ b/src/key.h @@ -13,9 +13,9 @@ #include "uint256.h" #include "hash.h" #include "bignum.h" -#include "ies.h" #include // for EC_KEY definition +#include // secp160k1 // const unsigned int PRIVATE_KEY_SIZE = 192; @@ -206,9 +206,6 @@ public: // Reserialize to DER static bool ReserealizeSignature(std::vector& vchSig); - - // Encrypt data - void EncryptData(const std::vector& data, std::vector& encrypted); }; // secure_allocator is defined in allocators.h @@ -247,7 +244,6 @@ public: CSecret GetSecret() const; CPrivKey GetPrivKey() const; CPubKey GetPubKey() const; - bool WritePEM(BIO *streamObj, const SecureString &strPassKey) const; bool Sign(uint256 hash, std::vector& vchSig); @@ -261,9 +257,6 @@ public: // Check whether an element of a signature (r or s) is valid. static bool CheckSignatureElement(const unsigned char *vch, int len, bool half); - - // Decrypt data - void DecryptData(const std::vector& encrypted, std::vector& data); }; class CPoint