tuweni / 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 - Bytes!: the raw response bytes

privateKey - SecretKey!: our private key

Return
HandshakeMessage!: a decrypted handshake response message