Identity class

SpacetimeDB user identity

Represents a 32-byte public key hash that uniquely identifies a user. Can be displayed as a hex string for UI purposes (ownership checks, avatars, etc.).

Constructors

Identity(Uint8List bytes)
Create an identity from 32 bytes

Properties

bytes Uint8List
The raw 32-byte identity
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toAbbreviated String
Abbreviated hex string for UI display (first 4 + last 4 chars)
no setter
toHexString String
Full hex string representation (64 characters)
no setter

Methods

equals(Identity other) bool
Check equality with another identity
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(String hex) Identity