ChainId

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

Companion for ChainId.

Attributes

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

Members list

Value members

Concrete methods

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

Parses and validates a chain id string.

Parses and validates a chain id string.

Value parameters

value

the raw string

Attributes

Returns

the validated chain id or an error message

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

Parses a chain id, throwing on invalid input.

Parses a chain id, throwing on invalid input.

Value parameters

value

the raw string

Attributes

Returns

the validated chain id

Throws
IllegalArgumentException

if the value is invalid

Source
GossipIdentifiers.scala

Givens

Givens

Attributes

Source
GossipIdentifiers.scala

Extensions

Extensions

extension (chainId: ChainId)
def value: String

Attributes

Returns

the underlying string value

Source
GossipIdentifiers.scala