KeyRecord class
KeyRecord
Constructors
- KeyRecord({required String keyId, required KeyType keyType, required KeyStatus status, required String publicKey, String? derivationPath, int? seedId, KeyOrigin? origin, String? label, bool? exportable, String? contextId, required String createdAt, String? updatedAt, Ext? ext})
-
const
-
KeyRecord.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- contextId → String?
-
Scope the key belongs to. Absence is not 'every scope' — a key with no context
is reachable only by a caller with unrestricted authority over the maintainer,
which is the more restrictive reading, and a consumer that treats absence as a
wildcard inverts the guarantee.
final
- createdAt → String
-
RFC 3339 timestamp at which the key was created or imported.
final
- derivationPath → String?
-
Hierarchical-deterministic path the key was derived at, when
originisderived. Absent for imported keys, which have no path.final - exportable → bool?
-
Whether the private half may be released to a caller.
falsemeans the custodian refuses every export of this key and can only be asked to use it — signing, key agreement — so the material never leaves. Absence means the key may be exported. That is the permissive reading, and it is deliberate: it is what every record written before this member existed already meant, so a custodian adding the member cannot silently retract access to keys its callers already hold. A consumer MUST NOT infer the converse — absence is not a statement that export was considered and allowed. Marking a key non-exportable does not make it unrecoverable: a custodian's own whole-store backup is a different mechanism from an export to a caller, and this member does not speak to it.final - ext → Ext?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- keyId → String
-
Maintainer-scoped identifier for the key. Stable for the key's lifetime except
through an explicit
keys/rename.final - keyType → KeyType
-
final
- label → String?
-
Optional human-readable label. Operator-facing only; carries no authorization
meaning.
final
- origin → KeyOrigin?
-
final
- publicKey → String
-
The public half, multibase-encoded. The private half is never carried by any keys/*
response.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seedId → int?
-
Identifier of the seed the key was derived from, when the maintainer holds more
than one. Absent for imported keys.
final
- status → KeyStatus
-
final
- updatedAt → String?
-
RFC 3339 timestamp of the last change to the record (rename, revocation).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited