summaryrefslogtreecommitdiff
path: root/src/identity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/identity.cpp')
-rw-r--r--src/identity.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/identity.cpp b/src/identity.cpp
index 8f606ae..3cba97c 100644
--- a/src/identity.cpp
+++ b/src/identity.cpp
@@ -58,6 +58,13 @@ Stored<PublicKey> Identity::keyMessage() const
return p->keyMessage;
}
+bool Identity::sameAs(const Identity & other) const
+{
+ // TODO: proper identity check
+ return p->data[0]->data->keyIdentity ==
+ other.p->data[0]->data->keyIdentity;
+}
+
optional<Ref> Identity::ref() const
{
if (p->data.size() == 1)