rlpx / org.apache.tuweni.rlpx / RLPxConnectionFactory / readResponse

readResponse

static fun readResponse(response: Bytes, privateKey: SecretKey): HandshakeMessage (source)

Decrypts the handshake response using our private key.

Parameters

response - the raw response bytes

privateKey - our private key

Return
a decrypted handshake response message