Files
zeekay 00108e7734 LP-107 Phase 4: lens consumes luxfi/math/codec
wire/wire.go — lens's wire-format hardening boundary. Lens deals in
curve points + scalars (32-byte each) so the risk surface is smaller
than pulsar's lattice frames, but the same bounded-decode contract
applies uniformly via the shared luxfi/math/codec substrate.

Tests:
* TestValidateLengthPrefixedFrame_RejectsHugeLength — regression
  for lattice issue #4 attack input class. Same rejection behavior
  as pulsar/wire and fhe/wire.
* TestValidateLengthPrefixedFrame_HappyPath — 3-element accept.
* TestValidateLengthPrefixedFrame_OverCap — MaxLensSliceLen+1 rejected.

go.mod adds luxfi/math v1.3.0 dependency.
2026-05-04 09:50:21 -07:00
..