Skip to main contentModule handshake
Source - HandshakeParams
- Non-IO inputs to the handshake.
- VerAckMsg
- Acknowledges a Version message;
ack=false means the responder
rejected the proposed version/protocol mix. - VerMsg
- Version-exchange message kicked off by the outbound side.
- handshake
- Run the handshake on split reader/writer. Returns the remote peer ID
and the set of protocols both sides support.
- protocols_intersection ๐
- Compute the intersection of protocols both sides support with
compatible versions. Returns the list of shared protocol IDs.
- send_verack ๐
- Sends a Verack message.
- send_vermsg ๐
- Sends a Version message.
- validate_verack_msg ๐
- Validates the given verack msg.
- validate_version_msg ๐
- Validates the given version msg. Returns the remote peer ID and
the intersection of compatible protocols.
- HandshakeWriter
- Writer type for the handshake.
- NegotiatedProtocols
- Negotiated protocol set from a successful handshake.