diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2023-10-29 21:51:17 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2023-11-28 21:53:03 +0100 |
commit | 648ca7febe4f09c663386ee2ea610d8ab150e053 (patch) | |
tree | 9df441afa677ea678fb200f6f2ee93fc07d51814 /include/erebos/identity.h | |
parent | 9ae77b5a3accd7bd4fd3c529a1567279fda95004 (diff) |
Identity extension data
Diffstat (limited to 'include/erebos/identity.h')
-rw-r--r-- | include/erebos/identity.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/erebos/identity.h b/include/erebos/identity.h index 336a18a..7829361 100644 --- a/include/erebos/identity.h +++ b/include/erebos/identity.h @@ -10,6 +10,7 @@ using std::vector; template<class T> class Signed; struct IdentityData; +struct StoredIdentityPart; class Identity { @@ -22,9 +23,11 @@ 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>>> &); + static std::optional<Identity> load(const std::vector<StoredIdentityPart> &); std::vector<Ref> store() const; std::vector<Ref> store(const Storage & st) const; - const vector<Stored<Signed<IdentityData>>> & data() const; + vector<Stored<Signed<IdentityData>>> data() const; + vector<StoredIdentityPart> extData() const; std::optional<std::string> name() const; std::optional<Identity> owner() const; @@ -59,6 +62,7 @@ public: static Builder create(const Storage &); Builder modify() const; Identity update(const vector<Stored<Signed<IdentityData>>> &) const; + Identity update(const vector<StoredIdentityPart> &) const; private: struct Priv; |