Document where headerbytes and publickey come from

This commit is contained in:
Duke
2022-12-08 21:47:09 -05:00
parent 31cdbc5f9e
commit 25fab30e1d

View File

@@ -385,8 +385,9 @@ QString MainWindow::createHeaderMemo(QString type, QString cid, QString zaddr, Q
h["z"] = zaddr; // string, zaddr to respond to
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
h["e"] = headerbytes; // string, hex-encoded libsodium headerbytes from crypto_secretstream_xchacha20poly1305_init_push()
h["p"] = publickey; // string, hex-encoded libsodium public key from crypto_kx_seed_keypair()
j.setObject(h);
header = j.toJson();