static fun fromNetWithNetworkKey(vertx: Vertx!, host: String!, port: Int, keyPair: KeyPair!, serverPublicKey: PublicKey!, networkIdentifier: Bytes32!): AsyncResult<ScuttlebuttClient!>!
(source)
Creates a SSB client with a network key
vertx
- Vertx!: the vertx instance to use for network IO
host
- String!: The host to connect to as a scuttlebutt client
port
- Int: The port to connect on
keyPair
- KeyPair!: The keys to use for the secret handshake
serverPublicKey
- PublicKey!: the public key of the server we connect to
networkIdentifier
- Bytes32!: The scuttlebutt network key to use.
Return
AsyncResult<ScuttlebuttClient!>!: the scuttlebutt client