egge313 / eggemesg

Egge's Messenger facilitates communication with strong cryptography via Tor.
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Implement a hidden service using libhttpserver #3

Closed egge313 closed 9 months ago

egge313 commented 10 months ago

Libhttpserver makes it possible to create a hidden service in C++.

  1. Beate connects to Agatha's service with a POST request.
  2. The request is encrypted with Agatha's connection public key.
  3. Within the request there is an announcement of Beate's connection (with a public key) and Beate's ID public key (with which the rest of the communication will be signed.)
  4. All requests are in JSON.
egge313 commented 9 months ago

As it happens, libhttpserver has its own thread model, which is different from that of Qt. Perhaps the hidden service needs to run as its own process.

egge313 commented 9 months ago

Decided to implement the hidden service with QHttpServer. Done.