diff options
Diffstat (limited to 'src/identity.h')
-rw-r--r-- | src/identity.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/identity.h b/src/identity.h index c3d9e2c..1653f51 100644 --- a/src/identity.h +++ b/src/identity.h @@ -15,37 +15,6 @@ using std::vector; namespace erebos { -struct IdentityData; -struct IdentityExtension; - -struct StoredIdentityPart -{ - using Part = variant< - Stored<Signed<IdentityData>>, - Stored<Signed<IdentityExtension>>>; - - StoredIdentityPart(Part p): part(move(p)) {} - - static StoredIdentityPart load(const Ref &); - Ref store(const Storage & st) const; - - bool operator==(const StoredIdentityPart & other) const - { return part == other.part; } - bool operator<(const StoredIdentityPart & other) const - { return part < other.part; } - - const Ref & ref() const; - const Stored<Signed<IdentityData>> & base() const; - - vector<StoredIdentityPart> previous() const; - vector<Digest> roots() const; - optional<string> name() const; - optional<StoredIdentityPart> owner() const; - bool isSignedBy(const Stored<PublicKey> &) const; - - Part part; -}; - struct IdentityData { static IdentityData load(const Ref &); |