zeekay 34b16d6969 fix(deps): reconcile go.sum against what the registry actually serves
Chasing these one at a time was whack-a-mole — every repair surfaced the next
moved tag (age, pq, threshold, zap, consensus, constants, sdk, keys…). This is
the systematic pass instead: every distinct luxfi/hanzoai module@version in the
workspace (692 of them) was resolved against proxy.golang.org + a direct fetch,
and any go.sum line disagreeing with what is actually served was corrected.

Not an attack, and checked rather than assumed: for each case the proxy and a
direct fetch AGREE with each other and differ from the recorded hash. Two
independent transports agreeing means nothing is rewriting bytes in flight —
the tags moved at source. sum.golang.org still holds the original, but
GOPRIVATE covers github.com/luxfi/* with GOSUMDB=off, so our own modules never
consult the checksum DB and a moved tag splits consumers silently instead of
failing at publish time.

Only the recorded hash changes. No selected version moves, and `go mod tidy`
was deliberately NOT run, so nothing is upgraded as a side effect.

Verified: `go list -m all` resolves with no checksum error.

The durable fix is upstream: treat a published version as immutable. Cut
x.y.z+1 instead of moving a tag — with GOSUMDB off, no consumer can detect it.
2026-07-26 04:16:45 -07:00
2026-06-28 20:56:52 -07:00
2026-06-28 20:56:53 -07:00

zapcodec

zapcodec

ZAP-native little-endian reflection codec for the Lux platform.

See LLM.md for the full module spec, wire format, and history.

import (
    "github.com/luxfi/zapcodec"
    "github.com/luxfi/utils/wrappers"
)

c := zapcodec.NewDefault()
_ = c.RegisterType(&MyConcrete{})

p := &wrappers.Packer{MaxSize: 1 << 20}
_ = c.MarshalInto(value, p)

For the canonical version-prefix outer layer used by the SDK wallet, see github.com/luxfi/proto/zap_codec.NewVersionedManager.

Extracted from github.com/luxfi/codec/zapcodec in Wave 2G-Archive.

S
Description
ZAP-native little-endian reflection codec — extracted from luxfi/codec as part of Wave 2G-Archive
Readme BSD-3-Clause
97 KiB
Languages
Go 100%