Code of Telegram Open Network and related P2P and blockchain technologies published

Launched test site and open source code for the TON (Telegram Open Network) blockchain platform, developed by Telegram Systems LLP since 2017. TON provides a set of technologies that ensure the functioning of a distributed network for the operation of various services based on the blockchain and smart contracts. During ICO the project has attracted more than $1.7 billion in investment. The source texts include 1610 files containing about 398 thousand lines of code. The project is written in C++ and spreads licensed under GPLv2 (libraries under LGPLv2).

Besides block TON also includes a P2P communications system, distributed blockchain storage, and service hosting components. TON can be considered as a distributed superserver designed to host and provide various services based on smart contracts. Cryptocurrency will be launched on the basis of the TON platform Gram, which is radically faster than Bitcoin and Ethereum in terms of transaction confirmation speed (millions of transactions per second instead of tens), and is able to process payments at the speed of VISA and Mastercard processing.

Open source allows you to participate in project testing and deploy your own network node, which is responsible for a specific branch of the blockchain. The node can also function as validator to confirm transactions on the blockchain. Hypercube Routing is used to determine the shortest path between nodes. Mining is not supported - all units of the Gram cryptocurrency are generated at once and will be distributed among investors and the stabilization fund.

All Components TON:

  • TON Blockchain is a blockchain platform capable of performing Turing complete smart contracts created in a language developed for TON Five and executed in the blockchain using a special TVM virtual machine. Supports updating the formal specifications of the blockchain, multi-cryptocurrency transactions, micropayments, offline payment networks;
  • TON P2P Network is a P2P network formed from clients used to access the TON Blockchain, send transaction candidates, and receive updates for parts of the blockchain required by the client. The P2P network can also be used in the operation of arbitrary distributed services, including those not related to the blockchain;
  • TON Storage - Distributed file storage accessible through the TON network and used in the TON Blockchain to store an archive with block copies and data snapshots. The storage is also applicable for placing arbitrary files of users and services based on the TON platform. Giving data is like torrents;
  • TON Proxy is an anonymizing proxy, reminiscent of I2P (Invisible Internet Project) and is used to hide the location and addresses of network nodes;
  • TON DHT is a distributed hash table that resembles kademlia, and used as an analogue of a torrent tracker for distributed storage, as well as a determinant of entry points for a proxy anonymizer and as a service search mechanism;
  • TON Services is a platform for creating arbitrary services (some kind of sites and web applications) available through the TON Network and TON Proxy. The service interface is formalized and allows interaction in the style of browsers or mobile applications. Descriptions of the interface and entry point are published in the TON Blockchain, and the nodes providing services are determined through the TON DHT. Services can create smart contracts in the TON Blockchain to guarantee the fulfillment of certain obligations to clients. The data received from users can be stored in TON Storage;
  • TON DNS is a system for assigning names to storage objects, smart contracts, services, and network nodes. Instead of an IP address, the name is converted into hashes for TON DHT;
  • TON Payments is a micropayment platform that can be used to quickly transfer funds and pay for services with delayed display on the blockchain;
  • Components for integration with third-party messengers and applications for social networks, allowing to make blockchain technologies and distributed services available to ordinary users. One of the first mass applications in which TON support will appear is promised to be the Telegram messenger.

Source: opennet.ru