Browse Source

Document where headerbytes and publickey come from

onryo
Duke 1 year ago
parent
commit
25fab30e1d
  1. 5
      src/chatmodel.cpp

5
src/chatmodel.cpp

@ -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();

Loading…
Cancel
Save