HubIdentity class final
The DAP/1 agent identity (signing + DH keypairs, derived agent id).
Properties
- agentId → String
-
hex(sha256(ed25519_pubkey_raw))[:16]— the hub address.final - dhKeyPair → SimpleKeyPair
-
X25519 keypair used for payload encryption (never for signatures).
final
- dhPubkeyB64 → String
-
no setter
- dhPublicKey → SimplePublicKey
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signingKeyPair → SimpleKeyPair
-
final
- signingPubkeyB64 → String
-
no setter
- signingPublicKey → SimplePublicKey
-
final
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
-
fromSeeds(
{required List< int> ed25519Seed, required List<int> x25519Private}) → Future<HubIdentity> - Rebuilds an identity from persisted seeds — the stable-address path (hosts store the seeds, the id survives restarts).
-
generate(
) → Future< HubIdentity> - Generates a fresh identity (tests, first boot without a store).