StaticPeerAuthenticator

org.sigilaris.node.gossip.StaticPeerAuthenticator
final class StaticPeerAuthenticator[F[_]](registry: PeerRegistry)(using evidence$1: Applicative[F]) extends PeerAuthenticator[F]

A PeerAuthenticator that accepts only direct neighbors from a static registry.

Type parameters

F

the effect type

Value parameters

registry

the peer registry used for neighbor verification

Attributes

Source
Contracts.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def authenticate(peer: PeerIdentity): F[Either[HandshakeRejected, PeerIdentity]]

Authenticates the given peer, returning the verified identity or a rejection.

Authenticates the given peer, returning the verified identity or a rejection.

Value parameters

peer

the peer identity to authenticate

Attributes

Returns

the authenticated identity or a handshake rejection

Definition Classes
Source
Contracts.scala