referenceMainnetEndpoint top-level constant

String const referenceMainnetEndpoint

The example-app wallet host-policy (spec §3.2g iii-B-2-b; ADR-0526). Builds the one WalletConfig this example wallet runs under — the endpoint, network, transport, and seed-persistence decisions live HERE, in the host, so the SDK stays policy-free (it validates the config; it does not choose it).

SCOPE (ADR-0526): these defaults govern ONLY this example app. A production host typically rides its OWN NetDialer/Tor infrastructure, so the endpoint and Tor policy there come from the host, NOT this file.

Each value is a named constant so it is pinned at its boundary by a test (gate 7 — no magic numbers) and a future change is a one-line, reviewable edit rather than a literal buried in a constructor. The mainnet lightwalletd-protocol (Zaino-compatible) gRPC endpoint — the public server the reference app uses (maintainer S56: "the server Zodl uses"; zec.rocks is Zodl/Zashi's default and the public endpoint ADR-0005 names). https:// — TLS to a remote host is mandatory (plaintext would be a leak, which the SDK rejects anyway). The STRING equals the SDK catalog's zec-rocks entry byte for byte (P3-13; pinned by the core's the_dart_reference_endpoints_match_the_catalog policy row): the picker marks the row in use by URL equality, so the default and the offered entry must spell the same server the same way.

Implementation

/// The mainnet lightwalletd-protocol (Zaino-compatible) gRPC endpoint — the
/// public server the reference app uses (maintainer S56: "the server Zodl uses";
/// zec.rocks is Zodl/Zashi's default and the public endpoint ADR-0005 names).
/// `https://` — TLS to a remote host is mandatory (plaintext would be a leak,
/// which the SDK rejects anyway).
/// The STRING equals the SDK catalog's `zec-rocks` entry byte for byte
/// (P3-13; pinned by the core's `the_dart_reference_endpoints_match_the_catalog`
/// policy row): the picker marks the row in use by URL equality, so the
/// default and the offered entry must spell the same server the same way.
const String referenceMainnetEndpoint = 'https://zec.rocks:443';