Repository navigation
Open
Description
Summary
Write ADR-0054: confidential, authenticated delivery of DKG shares between trustees, provided by ZeroJ. This would resolve ADR-0053 Q1, "how are the private channels realized?", which is currently escalated with the lean "the application provides them".
Proposed direction: each dealer encrypts each trustee's share pair (s_ij, s'_ij) to that trustee's registered encryption key, and posts the ciphertext on the same broadcast board as the rest of the DKG (for example a Cardano transaction). The scheme would be a pinned standard, HPKE (RFC 9180), used exactly as specified. No new cryptography.
Why
- Every application that uses ADR-0053 would otherwise have to build private channels itself. ZeroJ supplying a reviewed construction is safer.
- It fits Cardano better than app-provided channels such as TLS between trustees:
- Provable delivery. The encrypted share is on-chain, so "I sent it" and "I never got it" claims become checkable.
- Asynchronous. Trustees don't need to be online at the same time or reach each other's network addresses.
What the ADR must cover
- Risk classification. R2/R3: a new encrypted transport for secret shares. It needs an ADR, pinned references and an external review gate.
- Pinned references.
- RFC 9180 (HPKE): the exact mode and ciphersuite, for example
DHKEM(X25519, HKDF-SHA256),HKDF-SHA256, withAES-128-GCMorChaCha20-Poly1305. Its test vectors. - [GJKR07] §2.1, for the private-channel model being replaced.
- RFC 9180 (HPKE): the exact mode and ciphersuite, for example
- Security argument. The GJKR07 proof assumes ideal, untappable channels. With encryption, privacy also rests on the encryption scheme (computational). State the assumption explicitly.
- Note: the GJKR07 appendix ("Committing Encryption on a Broadcast Channel") shows that encryption does not fix JF-DKG's bias attack. It does not say encryption is unsafe for New-DKG. New-DKG's two-phase structure is what prevents bias.
- Harvest-now-decrypt-later. Ciphertexts on a public board are stored forever.
- A later leak of a trustee's encryption key exposes every share ever sent to that trustee.
- A leak of
t + 1keys exposes the election key, and with it every ballot. - X25519 is not post-quantum.
- Lean: use fresh per-session (per-attempt) encryption keys, deleted after the DKG. Specify and test this.
- Binding. HPKE
info/aadbinds the session id, sender, recipient, round and profile (ADR-0053 D6). Ciphertexts for another session, round or recipient are refused. - Key registration.
- How a trustee's encryption key enters the roster (ADR-0053 D4a), with proof of possession.
- Separation from the signing and authentication keys.
- Rotation.
- Complaints. ADR-0053's complaint and answer flow is unchanged: a dealer answers a complaint by publishing the share in the clear. Decide whether a recipient may also prove a bad decryption (opening the ciphertext), or whether that is unnecessary given the answer flow.
- Java and GraalVM. Java 25 building blocks: X25519
KeyAgreement,AES/GCM,ChaCha20-Poly1305, and theKDFAPI for HKDF. Check native-image compatibility, and add resource or config entries as needed. - Interop and tests. RFC 9180 known-answer vectors. Differential tests against an independent implementation, for example Python
pyhpkeor BoringSSL. Negative tests: wrong recipient, wrong session or round, tampered ciphertext, replay, reused ephemeral key.
Dependencies and ordering
- Follows ADR-0053 (Accepted, PR feat(elgamal): ADR-0052 ElGamal on Jubjub + ADR-0053 threshold DKG — accepted designs and implementation #76). ADR-0053's library already treats transport as pluggable (D3), so the DKG implementation (ADR-0053 M0–M3) is not blocked by this.
- Natural landing point: after ADR-0053 M2 (
DkgParticipant), so the encrypted transport can be tested against the real state machine.
References
- ADR-0052:
docs/adr/0052-exponential-elgamal-jubjub.md - ADR-0053:
docs/adr/0053-threshold-elgamal-jubjub-dkg.md(Q1, D3, D4a, D6) - PR feat(elgamal): ADR-0052 ElGamal on Jubjub + ADR-0053 threshold DKG — accepted designs and implementation #76
- R. Gennaro, S. Jarecki, H. Krawczyk, T. Rabin. Secure Distributed Key Generation for Discrete-Log Based Cryptosystems. J. Cryptology 20:51–83 (2007).
- RFC 9180: Hybrid Public Key Encryption.
Metadata
Metadata
Assignees
Labels
No labels
Activity