Docs
Post-Quantum Cryptography (PQC)
Account
Native ML-DSA

Native ML-DSA Accounts

Dora Vota natively supports ML-DSA-65 (NIST FIPS 204 (opens in a new tab)) user accounts through Cosmos SDK v0.55. A native ML-DSA account signs every transaction directly with an ML-DSA-65 private key—no classical secp256k1 key or x/pqcauth extension is involved.

This is the cleanest long-term post-quantum account model for new accounts or users who are ready to migrate assets onto a fresh dora1... address. If you need to keep an existing classical address and active staking positions, use PQC Auth instead.

How Native ML-DSA Accounts Work

  • Address format: Native ML-DSA accounts use the standard dora1... Bech32 prefix derived from the first 20 bytes of SHA-256(public_key) over the 1,952-byte ML-DSA-65 public key. You can receive DORA, stake, vote on governance proposals, and send IBC transfers just like any other Dora Vota account.
  • Single post-quantum signature: Transactions are verified directly by Cosmos SDK's x/auth signature verification decorator using ML-DSA-65 in SIGN_MODE_DIRECT.
  • Mutually exclusive with PQC Auth: Because the account is already authenticated with ML-DSA-65 at the SDK level, it does not need and cannot register x/pqcauth.
  • Verification gas floor: Dora Vota enforces a cryptographic verification cost of 750 gas per native ML-DSA-65 signature (sig_verify_cost_mldsa65, including inside multisigs), in addition to per-byte transaction size gas (tx_size_cost_per_byte = 10) and message execution gas.

Critical Warning: Mnemonic Isolation

Before creating a native ML-DSA key, understand how key derivation works in Cosmos SDK v0.55:

Use a fresh, dedicated mnemonic for every new ML-DSA account.

With the same mnemonic, BIP39 passphrase, and HD derivation path (m/44'/118'/0'/0/0), the current SDK derivation uses the BIP32-derived secp256k1 private key directly as the ML-DSA-65 seed.

  • Do not reuse a mnemonic from an existing classical wallet.
  • Do not import an ML-DSA mnemonic into a non-PQC wallet (such as Keplr, Leap, or Cosmostation).
  • Exposing the corresponding secp256k1 private key compromises the ML-DSA account, and publishing the corresponding secp256k1 public key on-chain re-introduces a future quantum attack path.
  • A non-PQC wallet derives a completely different address and will not restore your ML-DSA account.

dorad keys add --key-type ml_dsa_65 prints this warning automatically to stderr before prompting for input (without affecting --output json on stdout) and generates a 24-word BIP39 mnemonic (256-bit entropy).

Create a Native ML-DSA Account

Use dorad (v1.0.0+ supports native ML-DSA accounts; v1.2.0+ is recommended for the CLI mnemonic safety warning and latest security fixes) with --key-type ml_dsa_65:

dorad keys add my-pqc-account --key-type ml_dsa_65 --keyring-backend file

The first time you use --keyring-backend file, dorad prompts you to set a keyring passphrase (stored encrypted under ~/.dora/keyring-file/). Avoid --keyring-backend test for real funds—it stores keys unencrypted.

Record the generated 24-word mnemonic offline in a secure backup. Confirm the address and public key type:

dorad keys show my-pqc-account --keyring-backend file

The output displays a dora1... address and a public key of type /cosmos.crypto.mldsa65.PubKey.

Restore an Existing ML-DSA Account from Mnemonic

To recover a native ML-DSA account on another machine, pass both --recover and --key-type ml_dsa_65:

dorad keys add my-pqc-account --recover --key-type ml_dsa_65 --keyring-backend file

Omitting --key-type ml_dsa_65 defaults to secp256k1 and derives a different address.

Fund and Send a Transaction

Set your target network variables (example below uses mainnet; for testnet use RPC="https://vota-testnet-rpc.dorafactory.org:443" and CHAIN_ID="vota-testnet"):

RPC="https://vota-rpc.dorafactory.org:443"
CHAIN_ID="vota-ash"
GAS_PRICE="10000000000peaka"   # Standard Dora Vota gas price; adjust if your RPC node requires higher
 
PQC_ADDR=$(dorad keys show my-pqc-account --address --keyring-backend file)
echo "$PQC_ADDR"

After funding $PQC_ADDR (for example, by transferring from an existing account), verify the balance and send a test transfer:

dorad query bank balances "$PQC_ADDR" --node "$RPC"
 
TO="$PQC_ADDR"
AMOUNT="1000000000000000000peaka"   # 1 DORA = 10^18 peaka
 
dorad tx bank send my-pqc-account "$TO" "$AMOUNT" \
  --chain-id "$CHAIN_ID" --node "$RPC" \
  --keyring-backend file \
  --gas auto --gas-adjustment 1.5 --gas-prices "$GAS_PRICE"

Query the committed transaction hash to verify code: 0:

dorad query tx <TXHASH> --node "$RPC" --output json

All standard single-signer dorad tx commands—such as staking delegate, gov vote, and ibc-transfer transfer—work identically with a native ML-DSA key.

Gas, Payload Size, and Performance Notes

  • Transaction size: A native ML-DSA-65 signature is 3,309 bytes. On the account's very first outgoing transaction, the transaction's AuthInfo also publishes the 1,952-byte public key on-chain (a baseline sample transfer is ~5,491 bytes vs. ~323 bytes for secp256k1). Subsequent transactions omit the public key and carry only the 3,309-byte signature.
  • Measured gas usage: Because ML-DSA-65 payloads are much larger than secp256k1, total gas is substantially higher than for classical accounts. Measured on Dora Vota (bank send):
Transaction typeMeasured gasApprox. fee at 10000000000peaka/gas
Native ML-DSA first outgoing transfer (publishes pubkey)~276,000~0.0028 DORA
Native ML-DSA subsequent transfer~222,500~0.0022 DORA
Classical secp256k1 transfer (reference)~65,000~0.0007 DORA
  • Gas configuration: Always prefer --gas auto --gas-adjustment 1.5. If you must specify gas manually for a simple transfer, use at least --gas 400000 (with --fees 4000000000000000peaka at 10000000000peaka/gas); --gas 200000 is insufficient and fails with out of gas.
  • Observed network performance: In the Post-Quantum Consensus Benchmark on vota-testnet (with 100% ML-DSA-65 validator consensus), native ML-DSA accounts completed all 120,000 regular-load transfers across 50–200 TPS stages with zero rejections.

Migrating Assets from a Classical Account

If you choose to move from a classical secp256k1 account to a native ML-DSA account:

  1. Create and back up a fresh native ML-DSA account using a brand-new 24-word mnemonic.
  2. Test a small transfer from your classical account to the new ML-DSA address, then send a small outgoing transaction from the ML-DSA account to confirm you control the key and can sign cleanly.
  3. Move liquid balances to the new ML-DSA address.
  4. Plan staked positions: Delegated tokens cannot be transferred directly between addresses. You must unbond (waiting out the 21-day unbonding period) and re-delegate from the new ML-DSA address. If you cannot afford an unbonding gap or must preserve validator/governance identity, keep your classical address and protect it with PQC Auth.
  5. Migrate permissions and retire the old address: Transfer any CosmWasm contract admin roles, group memberships, or external system bindings to the new address, and revoke any authz grants or feegrant allowances on the old account before retiring it.

Current Compatibility and Limitations

  • CLI first: Full native ML-DSA-65 creation, signing, and transaction submission are supported today via dorad CLI (--key-type ml_dsa_65).
  • Browser and hardware wallets: Third-party Cosmos browser wallets and Ledger hardware wallets do not yet provide native ML-DSA-65 signing support. Check wallet release notes before moving funds that depend on browser-wallet UX.
  • Signing mode: Native ML-DSA accounts use SIGN_MODE_DIRECT; legacy Amino JSON signing is not supported for ML-DSA keys.