swisspost-evoting-go-poc/pkg/mixnet
saymrwulf bc43c3d3aa Instrument real crypto ops to emit live LaTeX events
The running cryptography now narrates itself. Each headline operation emits a
trace.Event carrying its LaTeX notation plus the actual runtime values, the
instant it executes:

- Ed25519 signature on every inter-party message (envelope.Seal)
- X25519 ECDH key agreement for confidential card delivery (NewSecureChannel)
- ElGamal ballot encryption E1 = (g^r, pk^r·m) with the real r (castBallot)
- Fiat-Shamir challenge e = H(...) mod q (Schnorr proof)
- Bayer-Groth verifiable shuffle C' = {ReEnc_pk(C_π(i))} with N (mix-net)

Ceremony phases set trace phase/party context so events are attributed to the
acting stakeholder and phase. Instrumentation is behind the enabled-check, so
normal runs pay nothing.

Test: a full traced ceremony captures 184 live events across all five headline
kinds, each with non-empty LaTeX and live values, correctly phase/party-tagged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 14:06:08 +02:00
..
commitment.go Swiss Post E-Voting Go PoC 2026-02-13 19:53:09 +01:00
hadamard_argument.go Due-diligence hardening + Rust transport-security layer 2026-07-06 14:42:34 +02:00
hash_helpers.go Swiss Post E-Voting Go PoC 2026-02-13 19:53:09 +01:00
multiexp_argument.go Due-diligence hardening + Rust transport-security layer 2026-07-06 14:42:34 +02:00
multiexp_test.go Swiss Post E-Voting Go PoC 2026-02-13 19:53:09 +01:00
permutation.go Swiss Post E-Voting Go PoC 2026-02-13 19:53:09 +01:00
product_argument.go Due-diligence hardening + Rust transport-security layer 2026-07-06 14:42:34 +02:00
shuffle.go Swiss Post E-Voting Go PoC 2026-02-13 19:53:09 +01:00
shuffle_argument.go Due-diligence hardening + Rust transport-security layer 2026-07-06 14:42:34 +02:00
shuffle_test.go Due-diligence hardening + Rust transport-security layer 2026-07-06 14:42:34 +02:00
starmap.go Swiss Post E-Voting Go PoC 2026-02-13 19:53:09 +01:00
svp_argument.go Due-diligence hardening + Rust transport-security layer 2026-07-06 14:42:34 +02:00
verifiable_shuffle.go Instrument real crypto ops to emit live LaTeX events 2026-07-07 14:06:08 +02:00
zero_argument.go Due-diligence hardening + Rust transport-security layer 2026-07-06 14:42:34 +02:00