Files
zeekay 48880f6432 zaptransport: intra-Lux operator-plane transport over luxfi/zap
Adds pkg/zaptransport — a thin facade over github.com/luxfi/zap for
operator-to-operator pre-commit gossip of Observations and
OracleRecords. Pure transport: carries opaque JSON bytes, never runs
signature math. Verification stays gated by pkg/profile via the VM.

Reserved oracle-plane ZAP message types (encoded as msgType<<8 in the
ZAP flags field, per upstream convention):

  0x58  MsgOracleHello
  0x59  MsgOracleObservation   (JSON Observation bytes)
  0x5A  MsgOracleRecord        (JSON OracleRecord bytes)

Service tag: "_luxd-oracle._tcp".

oracled gains --zap-port and ORACLED_ZAP_PORT (default 7810; 0
disables). External-source fetchers (Pyth, Chainlink, market-data
APIs, chain RPC) remain on their native transport — this package
does not touch them.

3 end-to-end tests round-trip Observation + Record payloads between
two ZAP nodes over loopback.
2026-05-19 08:37:24 -07:00
..