Repository navigation
zingo-netutils_v6.0.0
Added
-
The crate re-exports tonic's
TimeoutExpiredbesideStatus, the marker
tonic leaves in a status's source chain when the client's own request
deadline fired, so a consumer tells a timed-out request apart from a
verdict the indexer returned. -
test_tls, behindtestutils: the committed localhost certificate and
key. ASocks5Indexerin atestutilsbuild also trusts that
certificate, so a test can serve a Destination over TLS behind a loopback
SOCKS5 relay and run the real tunneled path offline. A build without
testutilstrusts the webpki roots alone, as before. -
nym_proxy::BootstrapEventand the observed lifecycle entries
NymProxy::start_observed,NymProxy::start_over_observed, and
NymProxy::reconnect_observed: every acquisition race — the first
bootstrap and each reconnect after a proxy death — reports its steps as
typed events naming the Exit Node each concerns, whilestart,
start_over, andreconnectremain thin silent renderings over the same
path, so the two narrations cannot drift.PullFailedcarries the pull's
whole typedzingo_net_diag::NetOpFailure— the stage, the target, and
the cause chain — rather than a line rendered for a human, so a
diagnostics surface renders structure instead of parsing prose. -
The
socks5-fetchfeature and thesocks5_fetchmodule: one HTTP request
carried through a conduit, classified into a typedzingo_net_diag
failure.ConduitDial::fetch_textis the entry, and it is the first
operation a conduit performs rather than describes, so a caller reaches the
wire by holding the guard instead of by reading an address out of it. -
The classification table's fabricated-input tests, which
docs/agents/net-diag-design.md
has mandated since the table was written and which nothing had ever
supplied. One case reaches each stage the table can produce, and two more
pin where the implementation diverges from the design's rows: the TLS arm
fires on chain text without theis_connect()conjunct the design
requires, and it outranksis_status(), so a status error whose chain
names a certificate never reachesRemoteHttp. -
provider::HostedProvider::rotation_verdict: the host's answer on
spending a rotation's bootstrap now, reaching the wallet through the
provider so the host itself stays below the seam. -
time::CONDUIT_DRAIN_BUDGETandtime::CONDUIT_DRAIN_POLL: how long a
superseded conduit may hold its transport open for work already dialed
through it, and how often that work is rechecked. The budget is
MIGRATION_SUBMIT_TIMEOUT, the longest bounded operation that work can
be, so a guard outliving it is a leak rather than slow work. -
conduit::ConduitDialandconduit::ConduitState: a conduit counts its
outstanding uses, so a superseded transport retires the moment its work
drains rather than after a guessed interval (ADR 0048).ConduitState
ordersServing,Superseded,Retired, which is the order a conduit's
life runs in, and it is derived from the count so retirement cannot be
claimed while work is outstanding. -
provider::RotationVerdictandProxyHosting::rotation_verdict: the
resource-constrained rotation policy a platform states, since only it sees
the battery, the foreground state, and the radio (ADR 0048).
provider::rotation_intervaldraws the randomised cadence, and
time::CLIENT_ROTATION_MINandtime::CLIENT_ROTATION_MAXbound it. -
provider::ProxyHosting,provider::HostedProvider,
provider::HostedTransport, andprovider::HostRefusal: the mixnet
provider a platform host supplies, moved down from zingolib (ADR 0046).
HostedProviderholds the supplied host, so the dynamic dispatch a
host requires stays below the seam and the wallet names a concrete
type. The provider names no async runtime: its methods block, and a
caller on a runtime hands them to a blocking thread. -
conduit::MixnetConduit: what a wallet holds when it has somewhere to
send mixnet traffic, asked for by role (ADR 0046). It replaces
zingolib'sSlotTunnel, which it also retires the term "tunnel" with.
Its address accessor stays public until the dialers that take a bare
SocketAddraccept a conduit instead. -
exit::ExitNodeIdand the Exit Pool, moved from zingolib so the wallet
crate stops owning Nym's vocabulary (ADR 0046). -
time::NYM_EPOCH: one Nym network epoch, the hourly topology rotation
that bounds how long an observation about an Exit Node stays meaningful. -
time::OBSERVED_ANNOUNCEMENT_MEAN,time::OBSERVED_ANNOUNCEMENT_DEVIATION,
andtime::ANNOUNCEMENT_DEVIATIONS: the measured exit-announcement
latency the readiness grace is now derived from. -
sentinelmodule (with thesocks5-transmitfeature):probe_sentinel
carries an ordinary DNS lookup of a constant name to a reliable public
resolver through a SOCKS5 tunnel, and reportsExitEvidence— whether the
bound Exit Node carried a round trip at all. A survey uses it to tell an
exit that carries nothing from indexers that will not answer; binding an
exit proves neither, because the mixnet client reports success against a
dead exit.time::SENTINEL_BUDGETbounds the probe. -
Socks5Indexer::get_latest_block: theGetLatestBlocktip fetch through
the local SOCKS5 proxy, the lightest liveness probe an indexer answers,
used by the attach readiness round trip and by live-indexer discovery. -
The
responsivenessmodule partitions network operations at compile
time: the sealedResponsivenesstrait with theCriticaland
NonCriticalmarker types, theResponsivenessClassenum with
wire,parse, andlaunch_policy, and the
RESERVATION_CLUTCH_SIZEconstant. -
LaunchPolicy::Saturatinglaunches the full clutch at once; a
Critical acquisition races under it. -
The proxy binary accepts
--responsiveness <critical|non-critical>
and defaults a bare invocation to critical. -
time::TRANSMISSION_HEDGE_INTERVALnames the send escalation's
silence interval, derived asPER_ATTEMPT_CONNECT_TIMEOUT + MIXNET_ROUND_TRIP_BOUNDso a responsive Destination's confirmed
delivery beats the first hedge (ADR 0040).
Changed
-
BREAKING:
rand0.10.provider::rotation_intervaltakes arand0.10
generator, and the exit tiers shuffle with the thread-local generator
where they drewrand::rngs::OsRng, a typerand0.10 removed. -
lightwallet-protocolmoves to 0.4.0, the upstream rev whose committed
bindings carry the Ironwood proto fields. The workspace no longer enables
rebuild-proto, so a build of zingo-netutils no longer runs protoc. -
time::MEMPOOL_DRAIN_SETTLEis raised from 200 ms to 750 ms, and
time::MEMPOOL_DRAIN_CEILINGfrom 1 s to 1.5 s to keep the settle window
inside it. zaino polls the validator's mempool every 500 ms by default, so
a 200 ms window let a sync session end before a transaction the validator
had just accepted was streamed to the wallet, leaving it inTransmitted
status until the next session. -
socks5_fetch::fetch_text_untunneledno longer sits behind the
testutilsfeature. It carries the nakednet price fetch a switched-off
Mixnet Mode consents to (ADR 0011, amendment 2026-08-26), where it used
to serve tests alone. -
The
socks5-fetchfeature enables neither reqwest'scookiesnor its
json. A price leg is a single stateless GET against a public quote
endpoint, so there is no session for a cookie jar to carry, and the fetch
reads the body as text and hands it to the source's own parser, so it never
touches reqwest's json surface. Both features came across with the fetch
when it moved out of zingo-price, where they had been inherited rather than
chosen. Dropping them takescookie,cookie_store,psl-types,
publicsuffix, andtime-macrosout of the wallet workspace's graph
entirely, and leaves this crate's own standalone lockfile gainingreqwest
alone where it had gained seven packages. -
BREAKING:
provider::RotationVerdictgains aNevervariant, which a
platform answers when rotation is ruled out for the session's whole life
rather than merely postponed.Deferused to carry both meanings, so a
desktop that will never rotate had to say so by repeating a ten-minute
deferral forever; the wallet now retires its rotation watchdog instead of
parking it on a cadence whose answer cannot change. -
BREAKING:
conduit::MixnetConduitis no longerCopy, and itssocks5
accessor is gone. Dialing takes aConduitDialguard fromdial(), whose
socks5is the only way to reach the address, so a use cannot be made
without being counted (ADR 0047, ADR 0048). -
time::EXIT_ANNOUNCEMENT_GRACEfalls from 25 seconds to 7. It was one
connect attempt plus a hedge interval, a bound chosen without measurement.
Thebirth-trialworkbench tool measured thirty pinned births against
mainnet on 2026-08-18 and found announcement latency averaging 4637
milliseconds with a standard deviation of 549, and a slowest sample of
5604. Seven seconds is the four-deviation figure rounded up to a whole
second.time::SPEED_ACQUISITION_DEADLINEderives from the grace and so
falls with it, from 285 seconds to 105. -
time::PROGRESS_HEARTBEAT_INTERVALsettles on a ten-second cadence. The
two-second value was a temporary diagnostic aid for the silent-phase
reports, and its narration crowded the interactive session it served. -
BREAKING: an acquisition's clutch grows from three Exit Node reservations
to four, and a racing arm now wins by carrying a round trip rather than by
binding a socket. Building a mixnet client never contacts the exit, so a
dead exit won the race as readily as a live one. Under the speed priority
each arm carries a Sentinel round trip before it can win, and an arm
whose exit stays silent loses the race. -
BREAKING: the free functions
send_transaction_via_socks5,
get_lightd_info_via_socks5, andtransaction_known_via_socks5are
replaced by theSocks5Indexerstruct.Socks5Indexer::newgroups
the proxy address, the indexer URI, and the round-trip bound once,
and the methodssend_transaction,get_lightd_info, and
transaction_knownrun the operations through one private
dial-and-bound pipeline. Every operation still opens its own SOCKS5
tunnel. -
BREAKING:
NymProxy::socks5_addrreturns astd::net::SocketAddr
instead of aString. The proxy announces the loopback address it
bound, so a caller dials the typed address it is handed and never
parses one out of text. -
BREAKING:
send_transaction_via_socks5,get_lightd_info_via_socks5,
andtransaction_known_via_socks5take the SOCKS5 proxy address as a
std::net::SocketAddrinstead of a&str. The one dial-string
rendering now happens inside the connector, so callers pass the typed
address they already hold and never render it. -
BREAKING:
NymProxy::startandNymProxy::start_with_progresstake
aR: Responsivenesstype parameter that names the acquisition's
responsiveness class. -
BREAKING: the
MAX_PARALLEL_CONNECTSconstant is renamed
RESERVATION_CLUTCH_SIZE; the race width is the clutch of exit
reservations, never an independent parameter (ADR 0035). -
BREAKING: the
arm_raceplanner speaks ADR 0035's pull vocabulary.
PullFailure(wasArmFailure) carries anarmfield (was
candidate),RaceEvent::PullFailedreplacesRaceEvent::ArmFailed,
RaceAction::Launch's field isarm, and
RaceAction::SetHedgeTimerreplacesRaceAction::ArmHedgeTimer
(whose "arm" was the verb, colliding with the bandit noun).
RaceState::newnames its first parameterarms. -
BREAKING: an acquisition races a Clutch the parent draws, never a crawl
it filters itself.NymProxy::start_overreplaces
start_with_progressand takes the drawn exits;NymProxy::start
draws its own for a standalone run. The proxy binary takes repeated
--exit <identity>arguments in place of--exclude-exit, and gains
--discover, which prints the directory's Exit Nodes and exits — the
parent's one window onto a population it cannot query itself.
MAX_EXIT_NODE_ATTEMPTSandNymProxyError::AllExitsExcludedare
removed, the clutch being the race's whole width. -
BREAKING: the census has no default server.
DEFAULT_INDEXER_URI,
DEFAULT_INDEXER_URI_TESTNET, theIndexer::defaultfield, and
default_uriare removed; a session either pins a server explicitly
or lets the Server-Selection Sweep select one. -
BREAKING: the spawned binary's health gate is deleted. The bound Exit
Node and the SOCKS5 address are announced at bind time, end-to-end
verification belongs to the session's sweep, andMIXNET_HEALTH_DRAWS
andindexers::MIXNET_HEALTH_INDEXERare removed. -
BREAKING: the periodic probe convention is retired. Attach readiness
and the recurring check are loopback dials only; the timing constants
rename accordingly:LISTENER_MONITOR_INTERVAL(was
LIVENESS_PROBE_INTERVAL),ATTACH_WATCHDOG_INTERVAL(was
ATTACH_PROBE_INTERVAL), andATTACH_LISTENER_RETRY_PAUSE(was
ATTACH_HEALTH_RETRY_PAUSE), andATTACH_READINESS_BUDGETretunes
from 61 s to 11 s. -
BREAKING: the responsiveness classes are renamed for the tradeoff they
declare:PrioritiseSpeed(wasCritical, saturating) and
PrioritisePrivacy(wasNonCritical, hedged), across the marker
types, theResponsivenessClassvariants, and the wire tokens
(--responsiveness <prioritise-speed|prioritise-privacy>). A class
names the acquisition's declared priority, never who waits. -
BREAKING: the Exit Node vocabulary replaces "provider" throughout the
proxy API (ADR 0038's glossary; "provider" is Loopix's word for the
gateway role, a false friend).NymProxy::exit_node,
NymProxy::start_with_exit_node, andNymProxy::discover_exit_nodes
replaceexit_provider,start_with_provider, and
discover_exit_providers.NymProxyError::NoExitNodereplaces
NoProvider, and theAttemptTimeoutandAttemptsExhausted
Displayrenderings now say "exit node" where they said "provider".
DiscoveredIndexerandDiscoveryFailurecarryexit_node(was
exit_provider).
Removed
-
BREAKING: the responsiveness partition is retired. The
Responsiveness
trait, thePrioritiseSpeedandPrioritisePrivacymarker types,
ResponsivenessClass, its wire token, and the proxy binary's
--responsivenessargument are gone;NymProxy::startandstart_over
lose their type parameter. Every acquisition now races under the one
hedged launch policy (arm_race::acquisition_launch_policy), an
arm wins by binding, and the child-side Sentinel gate is deleted: proof
of the bound exit belongs to the layer above the SOCKS5 seam, which
probes once per birth instead of once per losing arm. The speed class's
in-race proving starved acquisitions whenever no arm could complete a
round trip quickly, stalling the session tunnel atBootstrapping
past 90 seconds in three consecutive measured runs. -
BREAKING: the retirement's residue is gone with it. The
responsiveness
module is deleted, withRESERVATION_CLUTCH_SIZEand
acquisition_launch_policyre-homed inarm_racebeside the policy they
configure;LaunchPolicy::Saturating, which nothing outside its own
tests constructed, is removed; andNymProxyError::CarriesNothing, whose
only mint left with the child-side Sentinel gate, is removed. -
BREAKING:
live_indexer_discovery::DiscoveredIndexercarriestip: BlockId
where it carriedinfo: LightdInfo, because discovery now probes the tip. -
BREAKING: the
zingo-nym-proxy-fficrate and theuniffi-bindgen
helper leave this workspace; zingo-mobile now hosts the mobile UniFFI
proxy shim in its ownnym-hostworkspace (zingo-mobile PR #1251).
Fixed
conduit::MixnetConduit::in_flightcounts guards rather than references
to the shared core, so cloning a conduit no longer reads as using it. A
session holds one conduit and hands clones to every surface, and under
the previous derivation each of those clones inflated the count, leaving
a superseded conduit permanently short ofRetired.