DeviceRecord class final

A paired device: its public identity plus human-facing metadata.

Inheritance

Constructors

DeviceRecord({required String deviceId, required List<int> publicKey, required String label, required DateTime pairedAt, bool revoked = false, String signedBy = '', List<int> signature = const []})
Creates a roster record. signedBy and signature are written by DeviceRoster; a record without a valid signature is ignored by every device.
const

Properties

deviceId → String
The device fingerprint (Identity.deviceId).
final
documentId → String
The stable document id for this row inside kDeviceCollection.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
label → String
A human-readable name for the device, e.g. "Wouter's phone".
final
pairedAt → DateTime
When the device joined the roster (UTC).
final
publicKey → List<int>
The device's public identity, encoded with DevicePublicKey.toBytes.
final
revoked → bool
Whether the device has been revoked.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signature → List<int>
The Ed25519 signature by signedBy over the row's canonical payload.
final
signedBy → String
The Identity.deviceId of the device that wrote and signed this row.
final

Methods

copyWith({String? label, bool? revoked}) → DeviceRecord
A copy with label and/or revoked changed. The copy carries no signature: the writer must re-sign it.
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