ZenChat

Horizen Official
Jul 8 · 3 min read

One of the core objectives of the Horizen blockchain platform is to make online privacy accessible to as many people as possible. Because secure and private conversations are a huge part of this objective, we have built ZenChat as our first application on the Horizen blockchain platform. ZenChat allows users to communicate 1-on-1 or through group messages and channels. You can choose to send messages from an identifiable address or completely anonymously.

The value of our messaging protocol doesn’t rest only on regular user communication. It also applies to the communication between different clients, nodes, and applications at the protocol level. This will allow our platform to support highly interoperable applications.

How to Start?

The easiest way to start using the ZenChat messenger is to download our Flagship App, Sphere by Horizen, and create a wallet. You must activate the full mode in the settings to use ZenChat. Once you have set up the wallet, you need to create a messaging identity and choose a nickname. Users have to create and exchange a conversation key to start a conversation. This conversation key can be exchanged externally, e.g. through Discord.

A user is free to include other information in their messaging identity as they see fit. Our desired long-term solution is a distributed registry of ZenChat identities on the Horizen blockchain!

Messaging Protocol

Messages in ZenChat are actually transactions on a blockchain, just like the ones you use to send funds. A special data field — the memo field — contains the actual message. This field is usually not occupied in a regular transaction. Users can send messages from T-Address to Z-Address if a user wishes to be identifiable or from one Z-Address to another if the user chooses to communicate anonymously.

The sender of a message must have two addresses:

  • a Z-Address to send and receive the messaging transaction (used for “transport” only)
  • a T-Address to sign the message being, sent and for the use case when the user is not anonymous, prove the sender’s identity

Below you can see what an actual messaging transaction (“zenmsg”) actually looks like. It has a data field indicating the version (“ver”) of the protocol that the chat client runs, the address of the sender (“from”), the actual message, and a signature (“sign”). With this messaging format, the effective maximum length of a user message (“message”) is approx. 340 characters. Future protocol versions may allow larger messages by sending one message split into multiple transactions. When a user sends a message, the T-Address signs the text message of the sender and includes the signature in the message. There is no need to include a recipient because the signature includes information on who can read the message.

Don’t worry if this sounds overwhelming at first, the chat client you are using will take care of all the formalities. Once you have exchanged the conversation key with another user the interface will look like any other chat app you are already familiar with.

Anonymous Messages

If you decide to send an anonymous message, the message-transaction will look slightly different. The message won’t contain any information about the sender. Instead, the thread ID replaces the sender and signature. The chat interface generates the thread ID and includes information about the sender and the direction of the message.

It is not possible for the recipient to reply to such a message, as he does not have any information about who to send the answer to.

Group Messages

Group messaging involves multiple users sending messages to a single channel/group. Messages are visible to all users involved. The channel has a dedicated Z-Address that all users send messages to. Messages may have identifiable senders or they may be anonymous. Users may send a special message to the channel containing their identity details if they wish to share these. If a user does not send such a special message, other users will know their T-Address but will not necessarily know who is behind it.

The way to obtain a Z-Address for a messaging channel is implementation specific. One way recommended for user convenience is to let users use a common phrase, such as a #hashtag. Users individually convert this phrase into a Z-Address and import them into their wallet/GUI client.

Learn more about ZenChat and blockchain on the Horizen Academy


Originally published at https://academy.horizen.global.

Horizen

Horizen is an inclusive ecosystem built on its massively…

Horizen Official

Written by

Horizen is an inclusive ecosystem built on its massively scalable blockchain platform where everyone is empowered and rewarded for their contributions.

Horizen

Horizen

Horizen is an inclusive ecosystem built on its massively scalable blockchain platform where everyone is empowered and rewarded for their contributions.

Horizen Official

Written by

Horizen is an inclusive ecosystem built on its massively scalable blockchain platform where everyone is empowered and rewarded for their contributions.

Horizen

Horizen

Horizen is an inclusive ecosystem built on its massively scalable blockchain platform where everyone is empowered and rewarded for their contributions.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

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