NomosNativeTestPeerHost class abstract final

The Apple native test peer host does not exist without dart:ffi. It cannot be constructed, and start refuses.

Properties

connection → PeerOfficeConnection
The live Peer Office connection. A host whose trust-root application replaces the connection (Node reboots its process) answers the new one afterwards.
no setterinherited
custodyDirectory → Directory
The temporary directory holding this peer's Git custody. Deleted by dispose.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
kernelCalls → NomosKernelCallTransport
The generated binary kernel lane of connection (fixture genesis and law installs).
no setterinherited
kind → NmsTestPeerHostKind
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

awaitReady(DartReception reception) → Future<void>
Complete once reception (a new Reception over connection) may be used: the Node shell posts a ready event when its process has booted; the native host booted its resident kernel and Peer Office when it started and posts no such event.
inherited
dispose() → Future<void>
stop, then delete custodyDirectory.
inherited
inspectLawPackage(Uint8List lawUsdz, String label) → Future<LawPackageInspection>
The kernel's inspection of an opaque law package: its content identity and domain keys. Node asks its Peer Office (Runtime v2 inspectLawPackage). The Apple host's office has no inspection port, so the native shell asks its resident kernel directly — the same custody.lawClosureInfo call the Node adapter makes for its office.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
provisionWorkspace(String workspace) → Future<void>
Provision the platform-owned empty custody into which the one parentless genesis offer for workspace may write, in this host's layout. Fixture plumbing, not an application lifecycle operation.
inherited
restart({required List<int> trustRootPublicKey, Future<void> arrangeStoppedCustody()?}) → Future<void>
Restart the peer over the SAME custody with trustRootPublicKey. A host that cannot restart in-process refuses loudly; it never pretends to have restarted.
inherited
stop() → Future<void>
Stop the host's connection (and process, where it owns one). Custody stays on disk.
inherited
toString() → String
A string representation of this object.
inherited
trustFoundingRoot(List<int> publicKey, {required Future<void> beforeReplacingConnection()}) → Future<bool>
Trust publicKey as the root of this peer's universe before the genesis it will sign. Typed boot configuration, never a kernel variant. Node reboots its process with --trust-root-public-key (calling beforeReplacingConnection first, and answering true: the connection was replaced); native issues the kernel's one-time configure call on the live connection and answers false.
inherited
workspaceGitDirectory(String workspace) → String
The bare Git directory of workspace in this host's custody layout.
inherited

Operators

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

Static Methods

start(NmsTestPeerHostRequest request) → Future<NmsTestPeerHost>