scuttlebutt-client-lib / org.apache.tuweni.scuttlebutt.lib / ScuttlebuttClientFactory / fromNetWithNetworkKey

fromNetWithNetworkKey

static fun fromNetWithNetworkKey(vertx: Vertx, host: String, port: Int, keyPair: KeyPair, networkIdentifier: Bytes32, objectMapper: ObjectMapper, loggerProvider: LoggerProvider): AsyncResult<ScuttlebuttClient> (source)

Parameters

vertx - the vertx instance to use for network IO

host - The host to connect to as a scuttlebutt client

port - The port to connect on

keyPair - The keys to use for the secret handshake

networkIdentifier - The scuttlebutt network key to use.

objectMapper - The ObjectMapper for serializing the content of published scuttlebutt messages

loggerProvider - the logging configuration provider

Return
the scuttlebutt client