ArticleslgStudy

computer science

Tox (protocol)

Tox (protocol) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Tox (protocol) rather than just read about it. In short: Tox is a peer-to-peer instant-messaging and video-calling protocol that offers end-to-end encryption. The stated goal of the project is to provide secure yet easily accessible communication for everyone.

Tox (protocol) — main illustration
Tox (protocol) — illustration

Key takeaways

  • Tox (protocol) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Tox (protocol) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Tox (protocol) from memory before moving on to harder problems.

Reference excerpt

Tox is a peer-to-peer instant-messaging and video-calling protocol that offers end-to-end encryption. The stated goal of the project is to provide secure yet easily accessible communication for everyone. A reference implementation of the protocol is published as free and open-source software under the terms of the GNU GPL-3.0-or-later.

History

Inception An idea of developing a secure peer-to-peer messenger which would later turn into Tox sparked on the anonymous imageboard 4chan amidst the allegations that Skype provided the NSA with access to their infrastructure and encryption, just before they were bought by Microsoft. The initial commit to GitHub was pushed on June 23, 2013, by a user named irungentoo. Unofficial community builds became available as early as on August 23, 2013, with the first official builds made available in October 2013. On July 12, 2014, Tox entered an alpha stage in development and a redesigned download page was created for the occasion.

Tox Foundation controversy During the first two years of its life, the project's business and monetary side was handled by Tox Foundation, a California-registered corporation. On July 6, 2015 an issue was open on the project's GitHub, where a third party stated that Tox Foundation's sole board member, Sean Qureshi, used an amount of money in the thousands of US dollars to pay for their college tuition, with those funds coming from Tox Foundation's participation in Google Summer of Code. When asked for additional clarification, irungentoo, on behalf of the project's team, confirmed the allegations. On July 11, 2015 the project's infrastructure and repositories were moved to a new locations, due to the fact that Qureshi controlled the original project's domains and servers. In the project's blog the development team has announced their "disassociation" with Tox Foundation and Qureshi in particular, and further addressed the issue. This situation caused many prominent contributors to cease Tox-related activity.

Project's fork and Rust implementation Sometime during 2016, the original reference implementation saw a steady decline in development activity, with the last known commit currently dated Oct 2018. This caused the project to split, with those interested in continuing the development creating a new fork of Tox core called "c-toxcore" around the end of September 2016. Currently c-toxcore is being developed by a collective known as the TokTok Project. They describe their mission as "to promote universal freedom of expression and to preserve unrestricted information exchange". Their current goals are to continue slow iterative development of the existing core implementation, along with in-parallel development of a new reference implementation in Rust. Initially, the Rust implementation of the protocol library was split in two halves, one handling most of the grunt work of communication with the network, and another one responsible specifically for bootstrap node operation. In December 2022 those were merged, with developers stating that code was now mature enough to support basic communication and bootstrap node operations using TCP connections. As of June 2023 the development is still ongoing, but no client implementations using Rust core library is available yet.

Security audit and related concerns Although the original core library implementation and its forks have been available for the general public for almost a decade, none of them have been reviewed by a competent third-party security researcher. In 2017, WireGuard's author Jason A. Donenfeld opened an issue on the project's GitHub page where he stated that c-toxcore is vulnerable to key compromise impersonation (KCI) attacks. Donenfeld attributed his find to the fact that Tox is relying on "homebrew crypto" developed by "non-experts" to facilitate handshakes. He also criticized some other design choices used by Tox developers as well, like using raw ECDH values as encryption keys. This report has caused developers to put an additional disclaimer on the project's GitHub page, stating that Tox is an experimental cryptographic network library that has not been formally audited by an independent third party that specializes in cryptography or cryptanalysis, with a separate disclaimer that users may use it on their own risk. In March 2023, a post on the project's blog stated that one of the community members is working to redesign the cryptographic mechanism used by Tox to perform handshakes using the AKE mechanisms used in the Noise Protocol Framework. This post also contains a detailed explanation of the original vulnerability.

Features

Encryption of traffic Users are assigned a public and private key, and they connect to each other directly in a fully distributed, peer-to-peer network. Users have the ability to message friends, join chat rooms with friends or strangers, voice/video chat, and send each other files. All traffic over Tox is end-to-end encrypted using the NaCl library, which provides authenticated encryption and perfect forward secrecy.

Additional messaging features Tox clients aim to provide support for various secure and anonymised communication features; while every client supports messaging, additional features like group messaging, voice and video calling, voice and video conferencing, typing indicators, message read-receipts, file sharing, profile encryption, and desktop streaming are supported to various degrees by mobile and desktop clients. Additional features can be implemented by any client as long as they are supported by the core protocol. Features that are not related to the core networking system are left up to the client. Client developers are strongly encouraged to adhere to the Tox Client Standard in order to maintain cross-client compatibility and uphold best security practices.

Usability as an instant messenger Though several apps that use the Tox protocol seem similar in function to regular instant messaging apps, the lack of central servers similar to XMPP or Matrix currently has the consequence that both parties of the chat need to be online for the message to be sent and received. The Tox enabled messengers deal with this in separate ways: some prevent the user from sending the message if the other party has disconnected, while others show the message as being sent when in reality it is stored in the sender's phone waiting to be delivered when the receiving party reconnects to the network.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Tox (protocol)

Start with the simplest possible case. Write down what Tox (protocol) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Tox (protocol) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Tox (protocol) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Tox (protocol)

In research
Tox (protocol) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Tox (protocol) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Tox (protocol) is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2013 software, Android (operating system) software, Communication software, so understanding it makes those chapters shorter.
In everyday life
Look for Tox (protocol) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Tox (protocol) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Tox (protocol) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Tox (protocol) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Tox (protocol) in simple terms?

Tox is a peer-to-peer instant-messaging and video-calling protocol that offers end-to-end encryption. The stated goal of the project is to provide secure yet easily accessible communication for everyone.

Why does Tox (protocol) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Tox (protocol)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Tox (protocol).

Tags

  • 2013 software
  • Android (operating system) software
  • Communication software
  • Cross-platform software
  • Distributed computing
  • Free communication software
  • Free instant messaging clients
  • Free software programmed in C
  • IOS software
  • Instant messaging clients
  • Instant messaging clients for Linux
  • Instant messaging clients that use GTK

Keep exploring