moq-auth: ML-DSA signing, and ES384 as the documented asymmetric default

Open
#10,444 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, rust

Research direction

Start with doc/bin/relay/auth.md:157 and doc/bin/cli.md:484 to review the current asymmetric signing guidance, then locate the Rust and JavaScript implementations of moq-auth. The proposal calls for ES384 documentation and ML-DSA JWS support in both implementations; JavaScript will need an ML-DSA library or WASM build. Done means the docs and implementations cover the proposed algorithms; relay key refusal is optional.

Written by the indexing model from the issue text.

Description

quest

The NSA advisory of December 2, 2026 calls for an immediate move to post-quantum cryptography and drops every elliptic curve below P-384 from CNSA. Filippo Valsorda reads it as a classical attack on 256-bit curves (P-256, X25519, Ed25519): https://words.filippo.io/nsa-advisory/. ML-DSA is unaffected; RSA-3072 and P-384 are acceptable as a stopgap.

Today moq-auth signs with ES256, ES384, RS*/PS*, EdDSA (Ed25519) and HS*, and the docs steer asymmetric users to ES256 (doc/bin/relay/auth.md:157, doc/bin/cli.md:484).

Proposal

  • Point the docs' asymmetric examples at ES384 now, and say that ES256 and EdDSA rely on 256-bit curves.
  • Add ML-DSA JWS (ML-DSA-44/65/87, draft-ietf-cose-dilithium) to moq-auth in Rust and JS. aws-lc-rs has ML-DSA. On the JS side, WebCrypto has no ML-DSA yet, so it would need a library or a WASM build.
  • Optionally, let a relay refuse ES256/EdDSA keys by config.

Related: relay TLS already prefers X25519MLKEM768 (rind-rustls DEFAULT_KX_GROUPS), so key exchange needs no change.

(Written by Claude Opus 5.5)

Dominant language
Rust
Stars
1.6k
Forks
251
Avg merge
10h 10m
Merged PRs (30d)
822

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moq-dev/moq

All issues in moq-dev/moq

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.