static fun createHandshake(keyPair: KeyPair!, remotePublicKey: PublicKey!, initAndResponse: Function<Bytes!, AsyncResult<Bytes!>!>!): AsyncResult<RLPxConnection!>! (source)
Creates a complete interaction to run a handshake with a remote peer.
keyPair - KeyPair!: our key pair
remotePublicKey - PublicKey!: the peer public key
initAndResponse - Function<Bytes!, AsyncResult<Bytes!>!>!: a function giving us the peer response, and allowing us to respond to them to finalize the handshake
Return
AsyncResult<RLPxConnection!>!: a future RLPxConnection created as the result of the handshake