tuweni / org.apache.tuweni.scuttlebutt.handshake / SecureScuttlebuttStreamClient

SecureScuttlebuttStreamClient

interface SecureScuttlebuttStreamClient (source)

Interface used to encrypt and decrypt messages to and from a server.

Functions

readFromServer

abstract fun readFromServer(message: Bytes): Bytes

Adds message bytes to the reader stream, returning the bytes that could be decrypted.

sendGoodbyeToServer

abstract fun sendGoodbyeToServer(): Bytes

Prepares a goodbye message to be sent to the server

sendToServer

abstract fun sendToServer(message: Bytes): Bytes

Prepares a message to be sent to the server