A blockchain messenger with P2P speed

ADAMANT Messenger
Feb 7, 2020 · 3 min read

For quite a while we have been working on increased messaging speed. We want to make chatting via ADAMANT as fast as via classic P2P-messengers. We made another huge step with the latest PWA 2.4.0 release.

Image for post
Image for post

Not so long ago, we have added support for socket connections to nodes and now — to PWA too. WebSockets allow instant data sharing between a node and a messaging app and notifies about new events in a way of a new message.

Moreover, with the help of web-sockets, nodes can notify about those transactions that weren’t confirmed yet. That is why users get messages instantly. At first, a message is received with a status “Delivered to a node” ✔ and then, after it is confirmed by the blockchain system, its status changes to “Saved to the blockchain” ⚭. This is how it works:

As you can see, when sent, a message changes its status from 🕔 to ✔ in a fraction of a second. This means that the recipient has already received your message. Fast, huh?

After that, this message will be verified by the blockchain system ⚭. What if a message has already been delivered but is not confirmed by the blockchain yet? When this message is being delivered it is verified by one and only node. However, the decentralized network requires this message to be verified by other nodes too — this is what guarantees those advantages of a blockchain messenger. The process of receiving a new block and checking in a message takes a few seconds.

For now, WebSockets are supported by chatting via apps with nodes employed and those nodes communicate with each other with a delay. So if two users are connected to the same node, their messages will be delivered instantly. If they are connected to different nodes, the messages will come with a few seconds’ delay. It can be checked in the “Settings” section → Nodes list:

Image for post
Image for post

You and your chatter should disable (remove ticks) all the nodes except one. Then your messages will be delivered instantly. We plan to add supported connections between sockets and nodes so that there will be no delays no matter which nodes your chatters use.

Here is a full list of changes and fixes for the latest 2.4.0 version:

  • Resfinex Token (RES) support
  • Updated Stably Dollar (USDS) name and Logo
  • Adjusted Send Token menu height
  • Client-Node socket connection
  • New status ‘In blockchain’ for messages
  • Updated Buy&Sell tokens dialog
  • Added validation for BTC addresses
  • Fix for paste from clipboard address validation
  • Fix negative to send an amount

Apps are available for Web, Tor, Windows, Linux and Mac OS.

adamant.im

Relax. You are safe now.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store