diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2021-06-05 23:10:24 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2021-06-06 21:48:46 +0200 |
commit | 6c58f1e095f7dbe1e7e1654c1807a76276a2f3f2 (patch) | |
tree | a4e083c6dca3e6567a0d7983c7c316b85316bf4c /include/erebos/identity.h | |
parent | d563500c915de2f0a652513af03f101c99715db3 (diff) |
Contact list in shared state
Diffstat (limited to 'include/erebos/identity.h')
-rw-r--r-- | include/erebos/identity.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/erebos/identity.h b/include/erebos/identity.h index d0b60d5..888f162 100644 --- a/include/erebos/identity.h +++ b/include/erebos/identity.h @@ -6,6 +6,10 @@ namespace erebos { using std::optional; +using std::vector; + +template<class T> class Signed; +struct IdentityData; class Identity { @@ -17,8 +21,10 @@ public: static std::optional<Identity> load(const Ref &); static std::optional<Identity> load(const std::vector<Ref> &); + static std::optional<Identity> load(const std::vector<Stored<Signed<IdentityData>>> &); std::vector<Ref> store() const; std::vector<Ref> store(const Storage & st) const; + const vector<Stored<Signed<IdentityData>>> & data() const; std::optional<std::string> name() const; std::optional<Identity> owner() const; |