ML-DSA-65
ML-DSA (Module-Lattice-Based Digital Signature Algorithm) is standardised by NIST in FIPS 204. It was derived from CRYSTALS-Dilithium. ML-DSA-65 is the parameter set targeting NIST security category 3.
Sizes
| Item | ML-DSA-65 | secp256k1 ECDSA (for comparison) |
|---|---|---|
| Public key | 1,952 bytes | 33 bytes (compressed) |
| Signature | 3,309 bytes | 65 bytes |
| Secret key | 4,032 bytes (or a 32-byte seed) | 32 bytes |
A Pallas transfer is 5,344 bytes against roughly 110 bytes for an Ethereum EIP-1559 transfer. This affects bandwidth, block size and fees, and the gas schedule prices it explicitly.
How Pallas uses it
- Variant: pure ML-DSA (not the pre-hash variant HashML-DSA), external interface.
- Context string:
PALLAS-TX-v1. A signature made for another application, or with no context, does not verify as a Pallas transaction. - Message: the full encoded unsigned transaction, not a hash of it. Signature security therefore does not depend on Keccak-256 collision resistance as well.
- Randomness: wallets use hedged signing (fresh randomness mixed with the key), which resists fault and side-channel attacks better than deterministic signing. Deterministic signing is only used to produce published test vectors.
Keys from a seed
FIPS 204 key generation is deterministic from a 32-byte seed. Pallas wallets derive one seed per account:
keySeed_i = HKDF-SHA256(masterSeed, salt = "PALLAS-KDF-v1", info = "ml-dsa-65/" || u32be(i), 32 bytes)
There is no ML-DSA equivalent of BIP-32 public derivation, so a watch-only wallet needs each public key exported.
Strong unforgeability
ML-DSA is designed so that nobody without the secret key can produce a second valid signature for an already-signed message. The key holder can re-sign and produce a different signature, and therefore a different transaction hash, for the same payload. Wallets track pending transactions by sender and nonce for that reason.