PeerIdentity

org.sigilaris.node.gossip.GossipIdentifiers$package.PeerIdentity
object PeerIdentity

Companion for PeerIdentity.

Attributes

Source
GossipIdentifiers.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def parse(value: String): Either[String, PeerIdentity]

Parses and validates a peer identity string.

Parses and validates a peer identity string.

Value parameters

value

the raw string

Attributes

Returns

the validated identity or an error message

Source
GossipIdentifiers.scala
def unsafe(value: String): PeerIdentity

Parses a peer identity, throwing on invalid input.

Parses a peer identity, throwing on invalid input.

Value parameters

value

the raw string

Attributes

Returns

the validated identity

Throws
IllegalArgumentException

if the value is invalid

Source
GossipIdentifiers.scala

Givens

Givens

Extensions

Extensions

extension (identity: PeerIdentity)
def value: String

Attributes

Returns

the underlying string value

Source
GossipIdentifiers.scala