Libp2p RS version 0.2.1 & 0.2.2 introduction

Time:2021-10-27

V0.2.1 was released on 1.26, adding support for async STD and Tokio libraries.

0.2.2 was released on 3.1. Most of the problems in this version are found during the migration of trust IPFs. At present, the migration has been completed. The project address is https://github.com/netwarps/r… , the main update is to upgrade and optimize the existing API and code structure.

newly added

Runtime:

Async STD and Tokio are supported. The two runtimes are encapsulated and used through feature specification. The current default is async STD

modify

Swarm:

Implement trait protocolimpl, including two methods: handler () returns iprotocolhandler, which can be used by swarm to construct protocol handler; Start () will consume itself and start a loop to process the relevant information of the protocol.

FloodSub:

  1. Wrap the message with arc to avoid multiple clones in multiple subscribers.
  2. Optimize more. Await in the code and move it to a separate task to execute relevant logic

Kad:

  1. Multiple nodes can be passed in during bootstrap, and you can choose whether to wait for the message of successful node connection to return.
  2. Add the unprovide () method to support the removal of local provider information.

Netwops is composed of a domestic senior cloud computing and distributed technology development team, which has very rich landing experience in finance, power, communication and Internet industries. At present, netwops has set up R & D centers in Shenzhen and Beijing, with a team size of 30 +, most of which are technicians with more than 10 years of development experience, respectively from professional fields such as Internet, finance, cloud computing, blockchain and scientific research institutions.
Netwops focuses on the R & D and application of secure storage technology products. Its main products include decentralized file system (DFS) and decentralized computing platform (DCP). It is committed to providing distributed storage and distributed computing platform based on decentralized network technology. It has the technical characteristics of high availability, low power consumption and low network, and is suitable for the Internet of things Industrial Internet and other scenarios.
Official account: Netwarps