Browse Source

More details about header memo fields

onryo
Duke 1 year ago
parent
commit
31cdbc5f9e
  1. 6
      src/chatmodel.cpp

6
src/chatmodel.cpp

@ -380,10 +380,10 @@ 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; // integer, header number
h["v"] = version; // integer, HushChat version
h["h"] = headerNumber; // integer, header number starting from 1
h["v"] = version; // integer, HushChat version. currently 0
h["z"] = zaddr; // string, zaddr to respond to
h["cid"] = cid; // string, conversation id
h["cid"] = cid; // string, conversation id (UUID)
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

Loading…
Cancel
Save