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

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

abstract fun readFromServer(message: Bytes!): Bytes!

sendGoodbyeToServer

Prepares a goodbye message to be sent to the server

abstract fun sendGoodbyeToServer(): Bytes!

sendToServer

Prepares a message to be sent to the server

abstract fun sendToServer(message: Bytes!): Bytes!