Skip to content

ADR-0054: encrypted DKG share delivery (HPKE RFC 9180) — resolve ADR-0053 Q1 #77

Open

Description

@beanbot-gh

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, with AES-128-GCM or ChaCha20-Poly1305. Its test vectors.
    • [GJKR07] §2.1, for the private-channel model being replaced.
  • 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 + 1 keys 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/aad binds 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 the KDF API 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 pyhpke or BoringSSL. Negative tests: wrong recipient, wrong session or round, tampered ciphertext, replay, reused ephemeral key.

Dependencies and ordering

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions