diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-02-13 00:46:46 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 23:25:12 +0200 |
commit | 00a2777fc154537fe9fc9cfac082a29f70bf6b75 (patch) | |
tree | 8c8a1489afe9d430cfdb1a19c63341d320f7543e /include/Signature.hpp | |
parent | a9a7ecaa25e6bc11062e21affd458e2de78747ff (diff) |
Add database storage (in memory), need to store it on disk later
Diffstat (limited to 'include/Signature.hpp')
-rw-r--r-- | include/Signature.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/Signature.hpp b/include/Signature.hpp index 90d5278..ea776ea 100644 --- a/include/Signature.hpp +++ b/include/Signature.hpp @@ -31,8 +31,10 @@ namespace odhtdb { friend class KeyPair; public: + static PublicKey ZERO; + // Throws InvalidSignatureKeySize if size is not PUBLIC_KEY_NUM_BYTES - PublicKey(char *data, size_t size); + PublicKey(const char *data, size_t size); PublicKey(const PublicKey &other); PublicKey& operator=(const PublicKey &other); @@ -51,7 +53,7 @@ namespace odhtdb friend class KeyPair; public: // Throws InvalidSignatureKeySize if size is not PRIVATE_KEY_NUM_BYTES - PrivateKey(char *data, size_t size); + PrivateKey(const char *data, size_t size); PrivateKey(const PrivateKey &other); PrivateKey& operator=(const PrivateKey &other); |