Posts

Showing posts with the label cli

GNUnet Messenger API: March 2026

Hello again, this month I’ve contributed a bit across all kinds of services from GNUnet . It started with minor adjustments to the Messenger service inside GNUnet, fixing an issue in the encryption of SECRET messages. Before that it would use an encrypt-and-mac paradigm that might lead to an attacker breaking the encryption. This has been changed to use the encrypt-then-mac paradigm which is more typical for authenticated encryption . I should note that these changes break compatibility to previous version of the service and it only improves the security attributes of the forward secrecy which is using the SECRET messages. There have also been adjustments to ensure compatibility with changes in the crypto module of GNUnet which introduced syntax changes. Adding to this I’ve started debugging GNUnet services from CORE , DHT , CADET to REGEX and more. I’ve noted that some services were using a completely different peer identity key than underlying communicators which handle the ...

GNUnet Messenger API: February 2026

Hello again, this month has been a bit different. Originally I thought to be done with my previous changes, ready for release but there were still some issues open in other services marked for the next release of GNUnet . So I waited at first for others to solve them until I asked myself whether I should take use of that time to integrate the newer PILS service functionality into the MESSENGER service . Then I started testing the current state of connectivity using TRANSPORT and CORE with the new PILS service and I noticed a few problems. So naturally I reported it, adding another issue to the list of things being solved before the next release. Sigh. Eventually I became too impatient deciding to at least go for fixing the new issue, I reported . Because it was stopping me from properly testing the MESSENGER service. That is how I ended up changing some parts around many different services to utilize the PILS service more consistently. The service supplies other services, client...

GNUnet Messenger API: January 2026

Hello there, the new year has started and I continued with my ongoing work back from November . The client-side library libgnunetchat has added a new function to generate a random secret which applications like messenger-gtk or messenger-cli can store using libsecret . Such a secret will be used to encrypt and decrypt locally stored keys for private messages in the Messenger service. In theory it’s also possible to replace the secret with a custom password selected by the user but I didn’t want to add a dialog for entering a password to the application because it adds an annoying additional step regarding usability. So the current implementation seems like a good compromise and it’s still possible to adjust it in the future. In case the secret gets dropped from the storage of libsecret by the user or the application would provide the wrong value by user input for example, only the previous keys can’t be decrypted and older messages stay inaccessible. New messages would use a newer...

GNUnet Messenger API: September 2025

Hey, a few days ago GNUnet 0.25.0 got released with the latest changes to the CORE layer and containing the new PILS service reducing the risk of being tracked while using GNUnet over a wider area. The MESSENGER service might still have some issues working properly with these changes but I will let you know here when I implemented necessary changes to utilize the new PILS service. This will be necessary because the MESSENGER service actually requires to track peers collaborating in message exchange to some degree. It won’t be necessary to link peer identities to individual chat room members. At the same time switching networks on abstract level like walking around with your mobile device or switching from physical connection to WiFi shouldn’t cause issues, message loss or heavy disconnections. So it will be fun to tackle this! However I’m very optimistic GNUnet is going in the right direction with all this work on its fundamental layers. There are still issues underlying in the TR...

GNUnet Messenger API: July 2025

Image
Hi there, unfortunately I didn’t make it to write a blog post last month. I was quite busy closing open ends of other projects while there were quite some bugs and issues to be solved in the Messenger service of GNUnet . On the bright side this means I have a lot to talk about this month. Most critical issues could be solved already, test cases of libgnunetchat pass again with all latest changes and the end-to-end encrypted chats seem to work as intended. I am still encountering some issues that messages do not get received immediately from chats or the chats can behave somewhat inconsistent. However it’s likely some condition caused by parallel events or a very specific order of events that’s difficult to reproduce. But these issues only seem to appear on reopening old chats from a previous session. The current sessions simply seem to work properly. Invitations do now respond to input feedback all the time and chat types get visualized depending on actual bits in a chat room’s key....

GNUnet Messenger API: June 2024

Hey, this month I’ve started working on the implementation of a voice chat feature. So far my local tests are looking good, transferring raw audio data from one client to another, essentially streaming it. Latency of all the cryptographic overhead does not seem to be an issue. It’s still possible there are optimizations needed but for a first implementation it’s looking good. I’m still waiting for further practical multi-device tests on either NAT traversal or improved peer perception in local networks using GNUnet . Also there’s still ongoing work on the testing system to create local multi-device test cases using network namespaces . Until one of those options is solid, it’s difficult to verify whether latency or bandwidth need further improvements. So I’ve continued implementing the required API in libgnunetchat and I’am already working on the graphical interface for it in the GTK client. Because those parts don’t need to wait for the back-end anyway and it makes practical tests...

GNUnet Messenger API: March 2024

Image
Hello again, this month we finally got the release of GNUnet 0.21.0 and in addition we released a new release of libgnunetchat and both messenger front-ends . I tried to make sure the flatpak and snap packages work. However there were some difficulties. For example the flatpak runtime, the application uses, did not contain libportal for some reason. I needed to include that. The release of libgnunetchat caused a build issue because it required a dependency from the new meson build of GNUnet . The usage of Pipewire caused an immediate crash because of missing permissions. At the same time I worked on the flatpak manifest to make it update its dependencies automatically in the future via the external data checker that Flathub provides. public relation picture of the messenger application In the end the flatpak seems to work now. Only camera access is still not fully cooked yet. On my Librem 5 it gives a format error and fails to show an image. If no camera is connected at ...

GNUnet Messenger API: September

Image
Hey, this is the last post under the topic “GNUnet Messenger API”. As mentioned last time I only had a few remaining things to implement in the messenger-cli application. So that is pretty much what I did with some small caveats. The only thing not working as planned is file sharing. Let me explain this: You can already write a file path to your text input and it will send the file. When a file gets received, you can select the message, hit ENTER and download the file. However depending on your GNUnet setup uploading a file might not work. This seems to depend on user access permissions of your selected files. The best work-around I know is to use a single-user installation for GNUnet. But I hope that this can be solved properly, so users don’t have to mess with configurations. More information about this issue can be found here . The second missing part is that you can technically download the file and progress of that will be visualized. However there’s still no opt...

GNUnet Messenger API: August

Image
Hi again, I finally managed to get some more time working on the Messenger project and there have actually been quite some changes. First of all I added multiple views with sub-windows in the messenger-cli application. So essentially a really awesome aspect of ncurses was that you could draw content inside a so called window but also create sub-windows inside of another window. That means the whole implementation I’ve worked on before could be reused to merge multiple views in a custom layout, I just had to implement. So the results looks like this: image of messenger-cli in group chat The layout depends on the size/resolution of your terminal and will adjust dynamically if you resize it. So for example if you decrease the width the list of members in a chat will hide but it’s still accessible via pressing TAB. I tried to make the experience pretty smooth and used a lot of knowledge from working with libhandy on the convergent GUI from the messenger-gtk application. So I hop...

GNUnet Messenger API: July

Image
Hey there, this month there’s a little progress again on the side of the messenger-cli application: A list of all members in a chat room was added. Private chats will now be listed in the chats overview. A logo has been created which will be added to the application on startup in the close future. The formatting of messages and members got adjusted. image of messenger-cli chat views So this how it looks inside a chat room (left side) and you are able to switch to the list of members (right side) by pressing TAB. You can switch back and forth without issues. Pressing ENTER on a member in the list will open a private chat and send them an invitation (this is very similar to the implementation in the GTK interface ). In a chat room you can scroll through the messages or write own text and send it by pressing ENTER. You can also delete any message by selecting it with arrow keys and pressing DELETE. image of messenger-cli chat selection You can always go back to a previo...

GNUnet Messenger API: June

Hi, this month I don’t have much to announce. I’m currently sitting on another project until end of this month. So there are only minor things, I could implement. I’ve fixed multiple visual issues in the messenger-cli application. Also it got some proper filtering for messages and it will automatically scroll the messages when you are at the bottom of the list. One thing I started to tackle is closing memory leaks in the application. The idea is that I can utilize valgrind to search for memory issues in the library libgnunetchat above once the CLI client is rather safe. Because I can’t really do that with the GTK client if I don’t want to fix all memory issues in GTK3 first. So I’ve found an issue in using ncurses as suggested in most examples and code pieces you can find online. I contacted the current maintainer and it seems that I have to use a different way of initialization similar to how VIM does it. But I didn’t have the time to adjust the code yet. Other things I did...

GNUnet Messenger API: May

Hello, In April I could announce the release of the underlying chat library and this time I can happily announce that the GTK client got released . The first official release of the messenger-gtk application is 0.7.0 which might look a bit weird but the version numbering was inherited from the previous prototype cadet-gtk . So the actual release date (tagging the code in the repository) was pretty close after my last report in April but I still waited for the official announcement on gnunet.org because I wanted a proper packaging for users to test it out. That’s why we not only have tarballs available for libgnunetchat and messenger-gtk on the FTP server to install everything from source but you can also test out a flatpak hosted on flathub.org . From my testing so far there are still some issues regarding connectivity which need to be addressed in GNUnet itself but also crashes which are likely caused by the GUI code. So don’t expect a fully polished experience yet. But I was defi...

GNUnet Messenger API: April

Hey there, So last time I was pretty close to announce a release but I thought about delaying that for reasons of stability and polishing some aspects of the GUI application ( messenger-gtk ). Now I can at least announce the release of libgnunetchat 0.1.0 (the back-end of the messenger applications I’m working on). Since last month I implemented a missing feature in the GNUnet Messenger service , fixing some issues with renaming in the service causing crashes and I adjusted a lot in the back-end as well as adding documentation for its release. There have been added some test cases as well which helped to find the problem behind inconsistent usage of lobbies, I referenced last time. The test cases aren’t covering all features of the library ( libgnunetchat ) yet and at times they fail due to timeouts but it’s far more usable now and from my experience it’s good enough for a first release. I also want to be clear that the software is pretty much still in development and it’s likely ...

GNUnet Messenger API: March

Image
Hi again, Last time I had big hopes to make enough progress for a first release. But I think I’m gonna delay that a bit (maybe still this month but we will see) even though I could actually complete the things, I anticipated. However here is finally the long promised video of it running on the Pinephone Pro because there’s still much to show. The back-end of the messenger-gtk application called libgnunetchat now uses the GNUnet Name Store service to manage your chats instead of using a local directory and some configuration files for each chat as before. This means that it is now possible to start the application from any directory and it will properly sync the chats depending on the account/identity selected. Next big feature is that it is possible to generate so called lobbies. Lobbies are empty chat rooms which will be shared in form of a GNS record under a newly generated zone instead of your own identity zone. This has multiple reasons: Technically your own key could ...