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 - KeyPair!: our key pair

remotePublicKey - PublicKey!: the peer public key

ephemeralKeyPair - KeyPair!: our ephemeral key pair for this connection

initiatorNonce - Bytes32!: our random nonce

Return
Bytes!: the bytes of a handshake initiation message for a given peer