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