aboutsummaryrefslogtreecommitdiff
path: root/include/StagedObject.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/StagedObject.hpp')
-rw-r--r--include/StagedObject.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/StagedObject.hpp b/include/StagedObject.hpp
index 61e1073..dc2aaf4 100644
--- a/include/StagedObject.hpp
+++ b/include/StagedObject.hpp
@@ -3,6 +3,7 @@
#include "Key.hpp"
#include "types.hpp"
#include "DataView.hpp"
+#include "Signature.hpp"
namespace odhtdb
{
@@ -27,12 +28,13 @@ namespace odhtdb
Key key;
DataView data;
u64 timestamp; // In microseconds
+ Signature::PublicKey creatorPublicKey;
- StagedAddObject() : key(), data(), timestamp(0) {}
- StagedAddObject(const Key &_key, const DataView &_data, u64 _timestamp) :
- key(_key), data(_data), timestamp(_timestamp)
+ StagedAddObject() : key(), data(), timestamp(0), creatorPublicKey(Signature::PublicKey::ZERO) {}
+ StagedAddObject(const Key &_key, const DataView &_data, u64 _timestamp, const Signature::PublicKey &_creatorPublicKey) :
+ key(_key), data(_data), timestamp(_timestamp), creatorPublicKey(_creatorPublicKey)
{
}
};
-} \ No newline at end of file
+}