# Parameter Reference | Parameter | Symbol | Current value | |---|---|---| | Requests per package | $N_R$ | 1,000 | | Included transfer per package | $B_I$ | 1 GiB | | Overage block | $B_G$ | 1 GiB | | Base package price | $P_B$ | 0.5 USDT | | Overage price per block | $P_O$ | 1.5 USDT | | Admission deposit headroom | $P_D$ | 0.5 USDT | | Usage report interval | $I_R$ | 1 s | | Registry heartbeat / entry TTL | $I_H$ / $\Theta_R$ | 15 s / 45 s | | Settlement tick | $I_S$ | operator-configured | | Token lifetime | $\Theta_T$ | 24 h | | Client parallel dials | — | 3 | | Client candidate denylist | $\Theta_D$ | 60 s | On mainnet the token is `Bridged PHASE USDT` (symbol `USDT.e`), backed 1:1 by USDT: the bridge mints it only against USDT received at its deposit address, and the 10,000 USDT.e genesis supply is backed by a Phase Labs USDT reserve. The bridge is one-way for now: USDT.e cannot yet be withdrawn back to a source chain. Operator-configurable parameters may differ between deployments; the values above are the current network configuration and may change before and after mainnet launch. ## Notation | Symbol | Meaning | |---|---| | $c$ | paying account (20-byte Ethereum-style address) | | $\mu = (u,d,r,k)$ | session meter: up-bytes, down-bytes, requests, package watermark | | $N_R,\ B_I,\ B_G$ | requests per package; included bytes; overage block size | | $P_B,\ P_O,\ P_D$ | base package price; overage price; admission headroom | | $C(x)$ | cost of a package that carried $x$ bytes | | $P(c),\ \Omega(c),\ k_s(c)$ | prepaid balance; pending withdrawal; settlement watermark | | $\Delta(c,x)$ | amount debited by a settlement targeting cumulative total $x$ | | $I_R,\ I_H,\ I_S$ | report interval; registry heartbeat interval; settlement tick | | $\Theta_R,\ \Theta_T,\ \Theta_D$ | registry entry TTL; token lifetime; client denylist TTL | ## Wire Formats All multi-byte integers are little-endian unless noted. Strings are UTF-8. ### Tunnel connect frame (client → exit) | Field | Size | Contents | |---|---|---| | length $\ell$ | 2 bytes (u16 LE) | $1 \le \ell \le 512$ | | target | $\ell$ bytes | UTF-8 `host:port` | The exit replies with a single status byte (`0x00`/`0x01`/`0x02`/`0x03`); after `0x00` the stream is an unframed byte pipe. ### Authentication handshake (unidirectional streams) | Step | Direction | Size | Contents | |---|---|---|---| | U1 account | $\mathcal{C}\to\mathcal{X}$ | 21 bytes | tag `0x01` $\Vert$ 20-byte address $c$ | | U2 challenge | $\mathcal{X}\to\mathcal{C}$ | 2 + 34 bytes | length-prefixed JSON string: the 16-byte nonce as 32 lowercase hex digits in double quotes, no `0x` | | U3 signature | $\mathcal{C}\to\mathcal{X}$ | 65 bytes | $R\,(32) \,\Vert\, S\,(32) \,\Vert\, y\,(1)$, $y \in \{0,1\}$ | | U4 verdict | $\mathcal{X}\to\mathcal{C}$ | 1 byte | `0x00` accepted / `0x01` refused | The signature is computed over the nonce's 32 hex digits (no quotes, no `0x`) using Ethereum's signed-message encoding (EIP-191). Recovery byte: [Authentication Handshake](proxy-protocol.md#authentication-handshake). ### Connection close codes | Code | Meaning | |---|---| | 3 | out of funds: billing cut the session off because the client's deposit is exhausted | | 4 | billing unavailable: the exit could not meter the session, every billing leg unreachable or refusing | ### Signed registry registration (exit → billing) The optional registration signature is ed25519 over a 68-byte message: | Field | Size | Contents | |---|---|---| | domain tag | 28 bytes | fixed registration domain string | | public key | 32 bytes | exit endpoint identifier | | timestamp | 8 bytes (u64 LE) | seconds; strictly increasing per endpoint | Timestamps are accepted only within a tight window around the service's clock, and each accepted timestamp must strictly exceed the previous one for that endpoint — replayed registrations are rejected. ### Settlement call (settler → contract) | | | |---|---| | **Function** | `settleBatch(address[] accounts, uint256[] targets)` | | **Semantics** | each target is the account's cumulative charge total | | **Debit** | $\Delta(c,x) = \min(x - k_s(c),\, P(c))$ if $x > k_s(c)$, else $0$ |