
“picturePolkadot Knowledge Graph"It is our entry-level article on Polkadot from zero to one. We try to start from the most basic part of Polkadot and provide you with a comprehensive understanding of Polkadot. Challenges, but we hope that through such efforts, everyone can correctly understand Polkadot, and people who do not know Polkadot can easily and quickly grasp Polkadot-related knowledge.
Today is the 69th issue of this column. Substrate is an epoch-making invention, which greatly saves the development cycle and development process for developers. However, the current blockchain user interface is still centralized. So how does Substrate Conncet solve this problem? questionable?
Polkadot has one of the most active developer communities in the Web 3 field. In order to provide developers with all the knowledge needed for the blockchain, Polkadot has also established the industry's first education program - Polkadot Blockchain Academy. Students are provided with high-intensity, high-value, high-touch, face-to-face teaching and support.Developers can build the Polkadot ecosystem through the blockchain development framework Substrate, which allows developers to choose specific components that are most suitable for their application-specific chains
. The framework is free to be used by any developer who needs it, and now with Substrate Connect, application developers will realize a truly decentralized blockchain user interface.
The user interface of the blockchain is still centralized
Communication between the standard user interface (UI) and network nodes is via the JSON RPC protocol. Typically, the user interface will present the information available on the node, and this is achieved in two main ways.
1. User-controlled nodes:
The UI connects to the node client that the user has installed on their machine. These nodes are secure, but they are often inconvenient to install and maintain.
2. Publicly accessible nodes:
The UI connects to a publicly accessible node client owned by a third party. While these nodes are more convenient to use, they are more convenient to use, but they are centralized and insecure.There is now a new paradigm:。
Developers do not need to designate a centralized RPC node, but only need to define the on-chain specification of the blockchain so that their applications can be synchronized with the chain, which can be achieved through Substrate Connect
What is Substrate Connect?
Replace dependencies on RPC nodes with light clients
Substrate Connect is a PolkadotJS API-based JavaScript library and browser extension that enables developers to build application-specific light clients for Substrate chains. No installation or optional extensions are required, and minimal or no maintenance is required. The node is run by the JavaScript engine.general speaking,。
Substrate Connect is a Substrate client running in JavaScript
Application developers no longer need to rely on a single RPC node for end users to interact with their applications.
A light client is one that allows you to take advantage of all the possibilities on the chain, but it doesn't require you to run a full copy of the entire blockchain.
picture
How to use Substrate Connect?
As a JavaScript library
Substrate Connect provides a PolkadotJS API to connect to bundled nodes. By using this library, users can run actual Substrate compatible nodes.
A node bundled with its UI: a ready-to-use light client
https://github.com/paritytech/smoldot/
The UI connects to a directly integrated node client: convenient, secure, and decentralized. This is using smoldot via Substrate Connect
Wasm is implemented as a light client to securely connect to the blockchain network without relying on a specific third party.Application developers can now run Substrate light clients in any NodeJS environment.Currently, Substrate Connect supports Polkadot, Kusama, Westend, and Rococo
; Since light clients are part of the overall Substrate framework, they can be used with Substrate-based blockchains.
as a browser extension
Due to browser restrictions on WebSockets from HTTPS pages, establishing a sufficient number of peers is difficult, as many nodes require TLS to be available. The browser extension provided by Substrate Connect helps overcome this limitation and keeps the chain in sync in the background, making the application run faster.
A lightweight client that bundles multiple chains
The browser extension allows end users to interact with applications that connect to multiple blockchains, or connect their own blockchain to applications that support it.
Note: Substrate Connect will automatically detect if the user is using the extension. If not, a Wasm light client will be created for them on the page.
The Polkadot network is booming and ecological projects are emerging one after another. The Polkadot Ecological Research Institute focuses on Polkadot ecological trends and grasps current trends. Reply to [Daily] to get the latest daily news summary of Polkadot ecology.
https://t.me/polkadot_eri
Welcome everyone to join our Polkadot Ecological Research Institute Telegram:
https://mirror.xyz/0x9A259b3a2316281Cc948cE2Cf 1 Ac 610 a 79844 f 05