Content
A path is determined through the previous routing algorithm. When sending data, it takes one hop (origin node --> hop --> ... --> hop --> final node) to reach the destination node through the intermediate node. How to ensure data security and meet a certain degree of anonymous privacy protection requirements? For example, only the final destination node can see the sent data, and the intermediate nodes cannot know the data.
In order to meet the above requirements, an important feature of the "routing part" of the Lightning Network is an anonymous network path. Only the initiating node knows the complete route, and other nodes only know the previous hop and next hop nodes. The specific implementation is through the onion routing protocol of the Sphinx solution.
In an onion routing network, the message is encrypted and packaged layer by layer like an onion. Each time a node passes through, the outermost layer of the packet will be decrypted, and the last layer will be decrypted until the destination, so that the destination can be Get the original message. And because through this series of encrypted packaging, each network node (including the destination) can only know the location of the previous node, but cannot know the entire sending path and the original sender's address.