官术网_书友最值得收藏!

Understanding DEVP2P

DEVP2P is a networking protocol in charge of managing the negotiations between nodes when they want to interact by sending messages. Each message is encrypted using a protocol named RLPx, which allows nodes to exchange encrypted data over the network with a secure guarantee that nobody but the recipient will be able to decode the message.

For nodes to connect to each other, they expose any TCP port they would like to use, which, by default, is 30303. So, if you want to connect to a specific node, you must know exactly which port it is using, which protocol it is using, and the IP address or unique identifier of it. For instance, Whisper, the messaging protocol that we discussed earlier, uses the shh protocol, while Ethereum uses the eth protocol. This is just a simple distinction that becomes apparent when you use web3.js, because it shows each function in each corresponding protocol.

In summary, you've seen which components make up the Ethereum architecture, so you are able to discern which parts you're actually using when developing your smart contracts. You should be able to identify different protocols used in the network and understand which tools you have available.

You have just developed an increased awareness when it comes to the tools that are at your disposal, which is essential for all kinds of Ethereum developers that want to implement time-tested solutions to common problems. 

主站蜘蛛池模板: 阜新市| 海门市| 定兴县| 望都县| 化德县| 贡嘎县| 镇原县| 酒泉市| 隆昌县| 威海市| 梁河县| 定远县| 安康市| 永城市| 凤山县| 湖口县| 云浮市| 神农架林区| 海原县| 衡阳市| 双鸭山市| 株洲市| 乌海市| 江源县| 长宁区| 察隅县| 双江| 集安市| 临猗县| 合川市| 瓦房店市| 米泉市| 英超| 延吉市| 岚皋县| 定结县| 奉贤区| 光泽县| 南雄市| 霍山县| 于都县|