struct

Raft::RPC::Handshake

Inherits Struct < Value < Object

HMAC-SHA256 challenge frame for connection authentication.

Sent as the first TLV message on a new TCP connection. Both sides exchange a challenge and verify the peer holds the same cookie.

Constructors

new(hmac : Bytes, nonce : Bytes)
Source

Instance methods

hmac

HMAC-SHA256 digest of the cookie and nonce (32 bytes).

Source
nonce

Random nonce (32 bytes).

Source
type
Source