scuttlebutt-handshake / org.apache.tuweni.scuttlebutt.handshake

Package org.apache.tuweni.scuttlebutt.handshake

Types

SecureScuttlebuttHandshakeClient

class SecureScuttlebuttHandshakeClient

Class responsible for performing a Secure Scuttlebutt handshake with a remote peer, as defined in the Secure Scuttlebutt protocol guide

Please note that only handshakes over the Ed25519 curve are supported.

This class manages the state of one handshake. It should not be reused across handshakes. If the handshake fails, a HandshakeException will be thrown.

SecureScuttlebuttHandshakeServer

class SecureScuttlebuttHandshakeServer

Class responsible for performing a Secure Scuttlebutt handshake with a remote peer, as defined in the Secure Scuttlebutt protocol guide

Please note that only handshakes over the Ed25519 curve are supported.

This class manages the state of one handshake. It should not be reused across handshakes. If the handshake fails, a HandshakeException will be thrown.

SecureScuttlebuttStreamClient

interface SecureScuttlebuttStreamClient

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

SecureScuttlebuttStreamServer

interface SecureScuttlebuttStreamServer

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

Exceptions

HandshakeException

class HandshakeException : RuntimeException

Exceptions thrown during handshake because of invalid messages or different network identifiers.

StreamException

class StreamException : RuntimeException