Node Discovery

Introduce the node discovery and content discovery

This section introduces the mechanism of mutual discovery between storage nodes.

Node Discovery Mechanism

In CESS distributed storage system, there are two methods implementation for node discoveryone is based on the built-in node discovery mechanism of libp2p library, and the other one is based on the CESS blockchain network implementation.

Reference: libp2p node discovery

The node discovery mechanism of the CESS distributed storage system is implemented using a Distributed Hash Table (DHT). Content discovery is based on the CESS protocol implementation

Reference: DHT

Node Identity

As a storage node, one must first have a CESS network identity - the CESS account (wallet account), and then use the signature register transaction to become a storage node.

Before the storage node is activated, its identity is calculated based on the configuration file and the machine information. When registering the node, it reports its identity to the blockchain network. Any node in the network can obtain the identity information of other peer nodes, and add them to its communication network to complete the node discovery process.