mirror of
https://github.com/luxfi/corona.git
synced 2026-07-27 02:50:34 +00:00
Phase 3a step 1: require github.com/luxfi/dkg v0.2.0 and prove, before any
rewire, that the shared library's ring.Ringtail() binding reproduces
corona/dkg2's KAT-pinned arithmetic byte-for-byte.
Gate (cutover_gate_test.go), all green:
(A) ring.Ringtail() A,B == dkg2.DeriveA/DeriveB over all 8x7 slots.
(B) vss's REAL Party.Round1 commits == dkg2.Round1WithSeed commits for the
same 32-byte sampling seed (exercises vss computeCommits, not a re-impl).
(C) vss Horner shares (ring.ScalarMulVec/VecAdd) == dkg2 big.Int Horner shares
for every recipient — the Barrett-vs-bigint paths agree on the canonical
representative in [0,q).
(D) PIN 4 pinned to ground truth: dkg2.Round2 b_ped (IMForm+INTT) = vss group
commit T (INTT-only) scaled by R^{-1}; the two differ by EXACTLY the
Montgomery factor R (MForm(b_ped)==T). corona's PRODUCTION key is NEITHER:
keyera Path-(a) noise flooding multiplies NTT-Mont operands so the R is
correctly cancelled, yielding the TRUE A·s+e'' — convention-aligned with
vss's TRUE T. dkg2's R^{-1}-scaled b_ped is an internal Round2 value the
production path discards, so the rewire (keep corona's finalize, use vss
for share-dealing) preserves the group key with NO convention change.
41 lines
1.4 KiB
AMPL
41 lines
1.4 KiB
AMPL
module github.com/luxfi/corona
|
|
|
|
go 1.26.4
|
|
|
|
require (
|
|
github.com/luxfi/dkg v0.2.0
|
|
github.com/luxfi/lattice/v7 v7.1.0
|
|
github.com/luxfi/math v1.4.0
|
|
github.com/luxfi/zap v0.7.2
|
|
github.com/montanaflynn/stats v0.9.0
|
|
github.com/spf13/cobra v1.10.2
|
|
github.com/zeebo/blake3 v0.2.4
|
|
golang.org/x/crypto v0.52.0
|
|
)
|
|
|
|
require (
|
|
github.com/ALTree/bigfloat v0.2.0 // indirect
|
|
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
|
|
github.com/cloudflare/circl v1.6.3 // indirect
|
|
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
|
github.com/google/go-cmp v0.7.0 // indirect
|
|
github.com/grandcat/zeroconf v1.0.0 // indirect
|
|
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
|
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
|
|
github.com/kr/text v0.2.0 // indirect
|
|
github.com/luxfi/accel v1.1.9 // indirect
|
|
github.com/luxfi/crypto v1.19.17 // indirect
|
|
github.com/luxfi/mdns v0.1.1 // indirect
|
|
github.com/miekg/dns v1.1.72 // indirect
|
|
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
|
github.com/spf13/pflag v1.0.10 // indirect
|
|
github.com/stretchr/testify v1.11.1 // indirect
|
|
golang.org/x/exp v0.0.0-20260312153236-7ab1446f8b90 // indirect
|
|
golang.org/x/mod v0.36.0 // indirect
|
|
golang.org/x/net v0.55.0 // indirect
|
|
golang.org/x/sync v0.20.0 // indirect
|
|
golang.org/x/sys v0.45.0 // indirect
|
|
golang.org/x/tools v0.45.0 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
)
|