tuweni / org.apache.tuweni.rlpx / RLPxConnectionFactory / messageSize

messageSize

static fun messageSize(msgBytes: Bytes!): Int (source)

Identify the size of a handshake message based on elements of the common MAC.

Parameters

msgBytes - Bytes!: the bytes of the message

Return
Int: the size of the message, including MAC, key and IV