4 Commits
Author SHA1 Message Date
zooqueenandHanzo Dev 54a1e77498 docs: tidy LLM.md indexes; CLAUDE.md -> LLM.md symlink convention
Co-authored-by: Hanzo Dev <[email protected]>
2026-06-17 09:56:44 -07:00
zooqueenandHanzo Dev 57a29193d5 deps: accel v1.1.0 -> v1.2.2 (bundled c_api.h; fixes CGO build)
accel v1.1.0 lacked the bundled lux/accel/c_api.h, breaking api's CGO
build. v1.2.2 bundles the header and made native HQC opt-in.

Co-authored-by: Hanzo Dev <[email protected]>
2026-06-06 21:11:19 -07:00
zooqueenandHanzo Dev 6e47416df8 refactor(zap): rename InitializeRequest.LuxAssetID -> UTXOAssetID (canonical)
Decomplect step: the primary-network fee asset is canonically UTXOAssetID (named for the function, not the chain), matching runtime.Runtime.UTXOAssetID (runtime v1.1.0). Wire layout is unchanged (positional encoding), so this is source-only and wire-compatible; vm/node consumers switch from req.LuxAssetID to req.UTXOAssetID when they bump to the released api carrying this rename. Kept separate from the ReadCount safety commit.

Co-authored-by: Hanzo Dev <[email protected]>
2026-06-06 20:46:47 -07:00
zooqueenandHanzo Dev 3cce18ef60 fix(zap): bound element counts before make() to stop unbounded-alloc DoS
A decoded uint32 element count fed make([]T,count) before the per-element loop consumed any bytes, so a ~9-byte message with count=0xFFFFFFFF could drive a ~100GB allocation (OOM; the 16MB message cap and handler recover() do not bound it). Add Reader.ReadCount(), which rejects any count exceeding Remaining(), and use it in the 9 collection decoders across vm.go, sender.go, warp.go.

Co-authored-by: Hanzo Dev <[email protected]>
2026-06-06 20:46:47 -07:00