open method

  1. @override
Future<WalletSession> open()
override

Open the EXISTING provisioned wallet at the host data dir. Throws (typed) for not-found / another-instance-open / network-mismatch / device-locked / an interrupted create — open does NOT repair a remnant (it throws provisioningIncomplete); CREATE resumes the repair from the sealed seed, which is why the boot fork routes a remnant (walletExists() == false) to create, never here.

Implementation

@override
Future<WalletSession> open() async {
  openCount++;
  if (holdOpen != null) await holdOpen!.future;
  if (failOpen != null) throw failOpen!;
  return session;
}