tuweni / org.apache.tuweni.scuttlebutt.handshake / SecureScuttlebuttHandshakeClient / create

create

static fun create(ourKeyPair: KeyPair!, networkIdentifier: Bytes32!, serverLongTermPublicKey: PublicKey!): SecureScuttlebuttHandshakeClient! (source)

Creates a new handshake client to connect to a specific remote peer.

Parameters

ourKeyPair - KeyPair!: our long term key pair

networkIdentifier - Bytes32!: the network identifier

serverLongTermPublicKey - PublicKey!: the server long term public key

Return
SecureScuttlebuttHandshakeClient!: a new Secure Scuttlebutt handshake client