mirror of
https://github.com/luxfi/lens.git
synced 2026-10-30 16:21:16 +00:00
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.