aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/event.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/event.cpp b/src/event.cpp
index 2b8d4ed..4ba87d2 100644
--- a/src/event.cpp
+++ b/src/event.cpp
@@ -43,7 +43,9 @@ string Event::serialize()
// TODO: Reach out to a signer to sign the event, then set the signature.
- return j.dump();
+ json jarr = json::array({ "EVENT", j });
+
+ return jarr.dump();
};
void Event::deserialize(string jsonString)