currentAddress method

  1. @override
Future<String> currentAddress()
override

The wallet's current receive address (the unified address for account 0) — what the user shares to RECEIVE ZEC. NOT key material (it is public by design; the spending key never leaves Rust), so it belongs on this port. §5.4 NEVER-LOG applies (an address is a never-log value) — display it, allow copy, but never write it to a log. Cheap, local, no network.

Implementation

@override
Future<String> currentAddress() {
  currentAddressCount++;
  if (currentAddressThrows != null) {
    return Future<String>.error(currentAddressThrows!);
  }
  if (currentAddressNeverCompletes) return Completer<String>().future;
  return Future<String>.value(currentAddressResult);
}