Add datatypes to createHeaderMemo comments
This commit is contained in:
@@ -380,13 +380,13 @@ QString MainWindow::createHeaderMemo(QString type, QString cid, QString zaddr, Q
|
|||||||
QJsonObject h;
|
QJsonObject h;
|
||||||
// We use short keynames to use less space for metadata and so allow
|
// We use short keynames to use less space for metadata and so allow
|
||||||
// the user to send more actual data in memos
|
// the user to send more actual data in memos
|
||||||
h["h"] = headerNumber; // header number
|
h["h"] = headerNumber; // integer, header number
|
||||||
h["v"] = version; // HushChat version
|
h["v"] = version; // integer, HushChat version
|
||||||
h["z"] = zaddr; // zaddr to respond to
|
h["z"] = zaddr; // string, zaddr to respond to
|
||||||
h["cid"] = cid; // conversation id
|
h["cid"] = cid; // string, conversation id
|
||||||
h["t"] = type; // Memo or incoming contact request
|
h["t"] = type; // string, Memo or incoming contact request
|
||||||
h["e"] = headerbytes; // libsodium headerbytes
|
h["e"] = headerbytes; // string, hex-encoded libsodium headerbytes
|
||||||
h["p"] = publickey; // libsodium public key
|
h["p"] = publickey; // string, hex-encoded libsodium public key
|
||||||
|
|
||||||
j.setObject(h);
|
j.setObject(h);
|
||||||
header = j.toJson();
|
header = j.toJson();
|
||||||
|
|||||||
Reference in New Issue
Block a user