static fun createConnection(initiator: Boolean, initiatorMessage: Bytes!, responderMessage: Bytes!, ourEphemeralPrivateKey: SecretKey!, peerEphemeralPublicKey: PublicKey!, initiatorNonce: Bytes32!, responderNonce: Bytes32!, ourPublicKey: PublicKey!, peerPublicKey: PublicKey!): RLPxConnection!
(source)
Creates a RLPxConnection based off the complete handshake exchange.
initiator
- Boolean: whether we initiated the handshake
initiatorMessage
- Bytes!: the bytes of the initiation message
responderMessage
- Bytes!: the bytes of the response message
ourEphemeralPrivateKey
- SecretKey!: our ephemeral private key
peerEphemeralPublicKey
- PublicKey!: the peer ephemeral public key
initiatorNonce
- Bytes32!: the initiation random nonce
responderNonce
- Bytes32!: the responder random nonce
ourPublicKey
- PublicKey!: our public key
peerPublicKey
- PublicKey!: the public key of the peer
Return
RLPxConnection!: a valid RPLx connection to communicate between peers