UidComputer class

Computes deterministic OmnyUids from identity material.

Inputs are combined with a length-prefixed (TLV) framing so field boundaries are unambiguous — ["ab","c"] can never hash to the same value as ["a","bc"] — then hashed with SHA-256 and rendered as lower-case hex. A per-kind domain-separation tag prevents a node and a hub built from the same bytes from colliding, and lets the scheme be versioned.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Methods

computeHubUid({required Uint8List keyMaterial, required String machineId, required String os, required String arch, required String hostname}) OmnyUid
Computes a hub UID from its TLS public-key material plus stable hardware and platform attributes.
computeNodeUid({Uint8List? publicKey, required String machineId, required String os, required String arch, required String hostname}) OmnyUid
Computes a node UID from its (optional) public key plus stable hardware and platform attributes. publicKey is empty for token/keyless nodes.