aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-08 18:36:27 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 23:25:46 +0200
commit5e30dd8fd378b0dfb24a67aa75aec1d0902c0243 (patch)
treea74c0f68f5068227a8116a7f0eaea3f0a51ffc2f /src
parentc6c1b5217a48b60018bbd468b57cbcac600ec0ed (diff)
Add comparison function to public key
Diffstat (limited to 'src')
-rw-r--r--src/Signature.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Signature.cpp b/src/Signature.cpp
index af04017..c64af01 100644
--- a/src/Signature.cpp
+++ b/src/Signature.cpp
@@ -59,6 +59,11 @@ namespace odhtdb
return memcmp(data, other.data, PUBLIC_KEY_NUM_BYTES) == 0;
}
+ bool PublicKey::operator!=(const PublicKey &other) const
+ {
+ return !operator==(other);
+ }
+
string PublicKey::toString() const
{
return bin2hex(data, PUBLIC_KEY_NUM_BYTES);