kDB: Knowledge DataBase
Loading...
Searching...
No Matches
Messages.h
1#pragma once
2
3#include <knowCore/Timestamp.h>
4#include <QUuid>
5
6namespace kDBRDFGraphSynchronisation
7{
8 struct Status
9 {
10 QString name;
11 QUuid uuid;
12 QByteArray publicKey;
13 QByteArray revisionHash;
15 bool mergeMaster;
16 };
17 struct Vote
18 {
19 // Uid for the agent that casted this vote
20 QUuid voter;
21 // Signature for the vote
22 QByteArray signature;
23 // Uid for the candidate
24 QUuid candidate;
25 // Leg for the election from 0 -> inf
26 int leg;
31 };
33 {
34 QUuid requester;
35 QList<QByteArray> hashes;
36 };
37 struct Signature
38 {
39 QUuid author;
40 knowCore::Timestamp timestamp;
41 QByteArray signature;
42 };
43 struct Delta
44 {
45 QByteArray parent;
46 QByteArray hash;
47 QByteArray delta;
48 QList<Signature> signatures;
49 };
50 struct Revision
51 {
52 QByteArray hash, contentHash;
53 qint64 historicity;
54 QList<Delta> deltas;
55 };
56 struct Revisions
57 {
58 QList<Revision> revisions;
59 };
60}
Definition Revision.h:9
Definition Timestamp.h:39
Definition Messages.h:44
Definition Messages.h:51
Definition Messages.h:9
Definition Messages.h:18
knowCore::Timestamp electionTime
Time when the election was triggered.
Definition Messages.h:30
knowCore::Timestamp timestamp
Timestamp for the vote.
Definition Messages.h:28