diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2019-12-21 21:42:20 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2019-12-21 21:42:20 +0100 |
commit | f94443c63dfd63300e5bd29889935fd1f451175e (patch) | |
tree | 7722cfdac0ed76ff7f1fd525abb2ab15e0b0c998 /src/identity.h | |
parent | d084c069be38b6f3ad74912ca629403d9fdaec58 (diff) |
Identity storage and modification
Diffstat (limited to 'src/identity.h')
-rw-r--r-- | src/identity.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/identity.h b/src/identity.h index d31951f..4335d32 100644 --- a/src/identity.h +++ b/src/identity.h @@ -14,6 +14,7 @@ class IdentityData { public: static optional<IdentityData> load(const Ref &); + Ref store(const Storage & st) const; const vector<Stored<Signed<IdentityData>>> prev; const optional<string> name; @@ -35,4 +36,15 @@ public: function<bool(const IdentityData &)> sel) const; }; +class Identity::Builder::Priv +{ +public: + Storage storage; + vector<Stored<Signed<IdentityData>>> prev = {}; + optional<string> name = nullopt; + optional<Identity> owner = nullopt; + Stored<PublicKey> keyIdentity; + optional<Stored<PublicKey>> keyMessage; +}; + } |