diff options
author | Aleksi Lindeman <0xdec05eba@gmail.com> | 2018-02-14 22:18:48 +0100 |
---|---|---|
committer | Aleksi Lindeman <0xdec05eba@gmail.com> | 2018-02-14 22:18:55 +0100 |
commit | 67957afb6ba01bcd85f1abd1a50ad2c1aa813c7c (patch) | |
tree | 12d3d015df767fd8ec239dd5c8941e50f20d2ef7 /include/StagedObject.hpp | |
parent | 9c64764acc74b7f52c28110ede556098c7e5f116 (diff) |
Sign messages/verify message signatures
Diffstat (limited to 'include/StagedObject.hpp')
-rw-r--r-- | include/StagedObject.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/StagedObject.hpp b/include/StagedObject.hpp index dc2aaf4..fccf4f6 100644 --- a/include/StagedObject.hpp +++ b/include/StagedObject.hpp @@ -26,13 +26,13 @@ namespace odhtdb struct StagedAddObject { Key key; - DataView data; + std::unique_ptr<std::string> data; u64 timestamp; // In microseconds Signature::PublicKey creatorPublicKey; 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) + StagedAddObject(const Key &_key, std::unique_ptr<std::string> &&_data, u64 _timestamp, const Signature::PublicKey &_creatorPublicKey) : + key(_key), data(std::move(_data)), timestamp(_timestamp), creatorPublicKey(_creatorPublicKey) { } |