Skip to main contentModule handshake
Source - HandshakeParams
- Non-IO inputs to the handshake.
- VerAckMsg
- Answers a Version message;
ack=false means the sender rejected
the remote version/protocol mix. - VerMsg
- Version-exchange message. Both sides send one.
- WireVersion
- A version and the versions it accepts, as sent on the wire.
- handshake
- Run the handshake on split reader/writer. Returns the remote peer ID
and the set of protocols both sides support.
- mutual_match π
- True when each side accepts the other sideβs version. Both sides
run the same check, so they agree on the result.
- 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 π
- validate_verack_msg π
- Validates the given verack msg from the peer that sent
pidβs VerMsg. - validate_version_msg π
- Validates the given version msg. Returns the remote peer ID and
the negotiated protocol set.
- HandshakeWriter
- Writer type for the handshake.
- NegotiatedProtocols
- Negotiated protocol set from a successful handshake.