tuweni / org.apache.tuweni.rlpx / RLPxConnectionFactory / init

init

static fun init(keyPair: KeyPair, remotePublicKey: PublicKey, ephemeralKeyPair: KeyPair, initiatorNonce: Bytes32): Bytes (source)

Creates a handshake initiation message using ephemeral keys and a random nonce.

Parameters

keyPair - our key pair

remotePublicKey - the peer public key

ephemeralKeyPair - our ephemeral key pair for this connection

initiatorNonce - our random nonce

Return
the bytes of a handshake initiation message for a given peer