diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2023-12-15 22:13:36 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2023-12-16 21:12:13 +0100 |
commit | 0bcef826baaa6a335d8fddafdbebd00fbf421c2c (patch) | |
tree | 37abb37f8b811923e25180abeac3307d15f0b9ca /src/identity.h | |
parent | e4b5eb30af94991e19ac324d5e6ec616e6a71d36 (diff) |
Use extended identity data for name
Diffstat (limited to 'src/identity.h')
-rw-r--r-- | src/identity.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/identity.h b/src/identity.h index 1653f51..bfa5932 100644 --- a/src/identity.h +++ b/src/identity.h @@ -20,9 +20,9 @@ struct IdentityData static IdentityData load(const Ref &); Ref store(const Storage & st) const; - const vector<Stored<Signed<IdentityData>>> prev; - const optional<string> name; - const optional<Stored<Signed<IdentityData>>> owner; + const vector<Stored<Signed<IdentityData>>> prev {}; + const optional<string> name {}; + const optional<Stored<Signed<IdentityData>>> owner {}; const Stored<PublicKey> keyIdentity; const optional<Stored<PublicKey>> keyMessage; }; @@ -33,9 +33,9 @@ struct IdentityExtension Ref store(const Storage & st) const; const Stored<Signed<IdentityData>> base; - const vector<StoredIdentityPart> prev; - const optional<string> name; - const optional<StoredIdentityPart> owner; + const vector<StoredIdentityPart> prev {}; + const optional<string> name {}; + const optional<StoredIdentityPart> owner {}; }; struct Identity::Priv @@ -56,7 +56,8 @@ struct Identity::Priv struct Identity::Builder::Priv { Storage storage; - vector<Stored<Signed<IdentityData>>> prev = {}; + vector<Stored<Signed<IdentityData>>> prevBase = {}; + vector<StoredIdentityPart> prevExt = {}; optional<string> name = nullopt; optional<Identity> owner = nullopt; Stored<PublicKey> keyIdentity; |