• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KarpelesLab / lnp22 / 23518506997
80%

Build:
DEFAULT BRANCH: master
Ran 25 Mar 2026 12:14AM UTC
Jobs 1
Files 34
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Mar 2026 12:14AM UTC coverage: 80.309% (-4.9%) from 85.228%
23518506997

push

github

MagicalTux
Add 152-bit big.Int ring, TrapGen, SamplePre, PKE, and two-ring NIZK

Major expansion of the LNP22 framework with all components needed for
the full proof system operating at cryptographic parameter sizes.

New packages:
- internal/bigmod: big.Int modular arithmetic + rounding function ⌈·⌉_p
- ring/Big*: BigRing/BigPoly types with 152-bit NTT and Karatsuba
- sampler/Big*: Gaussian, uniform, ternary, challenge for BigRing
- trapgen: NTRU TrapGen (DLP14) with gadget matrix and poly inverse
- preimage: Gaussian pre-image sampling (SamplePre, GPV framework)
- pke: NTRU-style PKE with rounding-based encode/decode
- tworing: Two-ring NIZK with linear, quadratic, and ℓ₂-norm proofs

Key parameters:
- N=1024, Q=152-bit prime (570899077982401)
- Q ≡ 1 (mod 2048) enabling NTT at full 152-bit modulus
- Correctness: √d·(2dβ_s²+β_e)·p/q < 2^{-128}

148 tests across 10 packages, all passing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

809 of 1065 new or added lines in 19 files covered. (75.96%)

1611 of 2006 relevant lines covered (80.31%)

50735.45 hits per line

Uncovered Changes

Lines Coverage ∆ File
85
18.27
trapgen/ntru_solve.go
27
68.97
trapgen/trapgen.go
24
66.67
ring/bigvec.go
24
22.58
tworing/params.go
18
79.31
tworing/prover.go
14
64.1
preimage/samplepre.go
14
73.08
sampler/biguniform.go
12
73.33
tworing/verifier.go
9
87.14
internal/bigmod/bigmod.go
8
46.67
sampler/biggaussian.go
7
86.54
ring/bigring.go
6
95.77
ring/bigpoly.go
3
94.44
trapgen/gadget.go
2
94.74
pke/pke.go
2
96.61
ring/bigntt.go
1
97.67
sampler/bigchallenge.go
Jobs
ID Job ID Ran Files Coverage
1 23518506997.1 25 Mar 2026 12:14AM UTC 34
80.31
GitHub Action Run
Source Files on build 23518506997
  • Tree
  • List 34
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23518506997
  • ecee83eb on github
  • Prev Build on master (#23517354341)
  • Next Build on master (#23549044258)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc