Posts

Showing posts with the label gtk

GNUnet Messenger API: May 2026

Image
Hi again, besides a few minor fixes in libgnunetchat that I missed before the last release of version 0.7.0 in March, I worked on the GTK4 interface of the Messenger application again. For example the decryption of files didn’t function properly since my last code abstraction in libgnunetchat and I noticed that while testing the file sharing in the GTK interface. I fixed multiple segmentation faults and synchronization issues inside the application that I noticed during testing and adjusting minor GUI components as well. Screenshot of the account creation dialog Big improvements are the following: The messages won’t take too much horizontal space anymore but try to fit as little space in the window as possible (this had to be ported from GTK3 to GTK4). The send and record button will allow short and long press interactions that enable a new context menu for sending delayed messages. The voice recording is much more consistent with toggling logic via button interaction and ...

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: 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...

Development in 2025

Hey everyone, welcome to the recap of my development from 2025. It has been another year and I put a lot of effort into improving the GNUnet Messenger again. As part of completing my study, I developed a concept for forward secrecy in distributed group contexts. Then I implemented and tested that concept within the GNUnet Messenger service. Also GNUnet made huge jumps in terms of progress over the year apart from the Messenger service as well. There are still open ends to reach “perfect forward secrecy” for example which I outlined in my master thesis but tackling those ends is planned. Additionally I started adding colors to the messenger-cli application using ncurses and the porting of messenger-gtk from GTK3 to GTK4 began. Most of these efforts could be completed next year. Other changes went into the GNUnet Messenger service to improve security against attackers gaining access to identity keys. With those changes private encrypted messages stay private but as mentioned in ...

GNUnet Messenger API: October 2025

Image
Hi there, this month I started to port the messenger application from GTK3 and libhandy to GTK4 and libadwaita . So far the progress looks pretty good. I still need to adjust some widgets to avoid usage of some deprecated ones. There is some logic missing to upload files because file dialogs and widgets from GTK3 using those haven’t been ported exactly. So things need to change. Screenshot of the main window ported to GTK4 If you are interested in testing the changes so far, I have pushed all commits to a separate branch so far. While porting I have also noticed some bugs in the application and libgnunetchat API which might cause crashes or freezes. I will try to solve them before any release but I’m very confident that the next release will contain all the changes towards GTK4. Hopefully this will help long-term with reducing CPU load in case of image file previews and video streams. Also I’d like to add in-place video previews for shared files instead of relying on the vide...

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: January 2025

Hello there, so I got some news for you again regarding my progress on the GNUnet Messenger service as well as the applications. Because there has been a GNUnet release last month which made libgnunetchat and the messenger applications using it incompatible, I needed to implement some changes, fixes and announced a new release . The forward secrecy I’m implementing in the Messenger service of GNUnet is still on development branch though. It will take some time until those changes are ready for release. But I got quite a bit of progress. The members of a chat actually start building groups, exchanging keys to form a tree structure as suggested in my last post from December . If any member of such a group is missing an epoch key, they will delay depending on their position inside their group the appeal for the missing key to then authorize the whole group after gaining access. This way ideally just one member will send an appeal, receive access, send an authorization and the rest of ...

Development in 2024

Hey everyone, welcome to my yearly recap of the year 2024. What happened? What did I work on? Well, quite a lot actually. So let’s start with the biggest project and continue from there. The GNUnet Messenger got funding from NLnet again as I mentioned in the end of last year. The new goal was to improve usability and add new features. What features are we talking about exactly? My concept was to achieve feature parity with most popular messaging apps but sticking to a decentralized context. For example I wanted to add profile pictures. But we can’t simply upload image files to a profile picture server/provider and poll from there for any new contact we get. So the solution required a bit of hacking around in the back-end. I used reclaimID from GNUnet to allow users sharing personal information with selected contacts of their choice and profile pictures may be such personal information for example. That means we can upload encrypted image files to a decentralized file sharing ser...

GNUnet Messenger API: August 2024

Image
Hi again, as mentioned last time when talking about the user interface for discourses, I was looking into the implementation of video streaming this time. For this task I wasn’t really able to workaround using RTP or something comparable. So I tried looking into it again with success. The problem I had with it previously was actually related to me overlooking the structure GstRTPBuffer in the documentation of GStreamer . With that I was able to calculate the actual durations of each buffer. I could simplify the code handling video and audio streams into one with only some variables like datarate which differ. But overall it worked for RTP via both rtpL16pay and rtph264pay nodes. So I could transfer H.264 encoded video via GStreamer now without major issues. However one thing I needed to solve was getting encoding done on many different platforms and form factors. Because not every SoC or device offers hardware encoding and decoding which is preferable though reducing power cost ...

GNUnet Messenger API: July 2024

Image
Hi there, so this month I can show you the UI of the voice chat in current state. It might still not be perfect for all cases. But I think it’s a good compromise for desktop, mobile and overall consistency with other features. The discourse of any chat room can be opened as dialog above the main chat window to open and close a discourse. So this dialog will prevent texting to some degree. However it can be closed without leaving the discourse. So users can go back to chat texting and sending files, while being in active discourse over voice chat. picture of dialog open in front of chat messages It is possible to mute yourself via a button in the dialog. It is possible to adjust the overall volume of all audio. Also I have added some other buttons which are disabled for now for future functionality. All active members of a discourse are visually represented in the center grid of the dialog. All members of a chat room are visually listed in a sidebar. Maybe I will add some options ...

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: May 2024

Image
Hi again, there have been a lot of changes again this month. The issue (I mentioned last time ) in the reclaim subsystem from GNUnet was solved. So I adjusted libgnunetchat and the Messenger service regarding the changes in the API. Sharing attributes using tickets works properly and I implemented a way to share profile pictures through it. picture showing current contact info and views to deal with attributes The implementation works like this: You select an image file which gets published via FS subsystem in GNUnet. Then its URI to request and download the file from FS gets shared as attribute under a spcified name. If a user then decides to share that attribute with one of their contacts, they receive the URI and automatically download and display the profile picture as expected. picture showing the contact info for the current account to set a profile picture There’s still room for improvement. For example I might add a setting to automatically share a profile pi...

GNUnet Messenger API: April 2024

Hi there, another month of development is over. A lot of improvements, fixes and adjustments have been made. I started by fixing remaining issues in libgnunetchat from the last month and published a minor release to solve it for builds. Then I continued tweaking the GTK user interface of the GNUnet Messenger . It’s now possible to filter messages in chats by tags. There’s also a dialog to add tags to a selected message. In the chat details side bar there will be a list of media previews as well as a list of all shared files from the chat. Additionally I got rid of a memory leak I noticed from the media previews. Now those will even take less memory as footprint during runtime and you can switch between different accounts fluidly without consuming too much space on low-powered devices. Another quality of life improvement is the added localization. I only did translations from default English to German. But additional translations of any labels in the UI can easily be added now. So ...

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: February 2024

Image
Hi again, As mentioned last time I’ve implemented so called transcripts now. When a user sends a PRIVATE message to another contact inside a chat, they will receive a transcript containing the information of the encrypted message but encrypted for themselves. Deletions and other actions which target the transcript message will be forwarded to target the original private message as well. chat in messenger-gtk showing a sent invitation So users can now read their own written private messages like invitations and delete them. Additionally I’ve implemented rejections of invitations using the new TAG message using an empty tag. This message can target any previous message via its hash and communicate tagging of messages or contacts (if applied to the last JOIN message of another contact in a chat). This will allow blocking of contacts service wide. Because the same way a user can reject invitations, they can reject other contacts now to block them. Unblocking them will simply dele...

GNUnet Messenger API: January 2024

Hello there, hopefully you have arrived happily in the new year. There’s already some progress I want to share with you. First of all there’s new functionality in the GNUnet messenger service. The service allows sending tickets now which originally come from the RECLAIM service in GNUnet . Those tickets allow sharing selected attributes from your identity with another contact in a secure and private way: Only your selected contact can use the ticket because it requires their own identity key. Your contacts can rely on the attributes coming from you because it depends cryptographically on your identity key. You can adjust the values of those attributes and your contact will be able to receive its updated state. You can revoke an issued ticket at any time, making your contact loose the ability to read current values from the shared attributes. So what is all of this for? Couldn’t we already share information privately with a selected contact via PRIVATE messages in the messenge...

Development in 2023

Hey everyone, welcome to my second (maybe this will become yearly now) overview of what projects I contributed to over the last year. You might remember that I already had enough projects for a filled up schedule but I can ensure you, I found something to derail my focus even more. But let’s call it another little gift to unwrap instead. The graphical Messenger application only got a few fixes, mostly to patch package configurations. I also changed the build system from GNU Autotools to Meson . Hopefully that’s the last time I change the build system. The service in GNUnet got some more contributions from me lately. Partially because I got financial support from NLnet again which I’m thankfully for. Also because I want to bring my studies to an end and it’s a great topic for research. But honestly I want this project to become a practical option for messaging. So you can expect more contributions on this project in the next months as well as my monthly blog posts about its progres...

Development in 2022

Hey everyone, you have probably noticed that I didn’t provide the monthly updates about the GNUnet Messenger API since September . The reason for this is that my first goals completed and while I continued working on it, I contributed to other projects as well. So my time was limited. For example I did a lot of refactoring source code in the VkCV Vulkan framework and recently pushed a new release with a lot of features for developing graphics and rendering applications. There’s now also a blog to learn developing first graphics applications with this framework to utilize Vulkan (a cross compatible API for GPU acceleration). I’m currently one of the biggest contributors to this framework. So if anything might not work, feel free to contact me. Testing is very welcome and it’s fully open-source. That means contributions are welcome as well. Next thing I’m always trying to improve if I find the time is Manuskript . It’s a great tool for writers but it needs some work cleaning up its...

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...