OmnyUid class

A deterministic, globally-stable identifier for a node or a hub.

The value is a short prefix (nod_ for nodes, hub_ for hubs) followed by the URL-safe base64 of a SHA-256 digest of the entity's identity material (cryptographic key + stable hardware/platform attributes). Because the alphabet is [A-Za-z0-9_-] plus the _ separator, every OmnyUid is also a valid NodeId. Equality is by value.

Constructors

OmnyUid(String value)
Wraps and validates a UID value.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
isHub bool
Whether this UID identifies a hub.
no setter
isNode bool
Whether this UID identifies a node.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The full identifier string, including its prefix.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

hubPrefix → const String
The hub UID prefix.
nodePrefix → const String
The node UID prefix.