# Kalshi API keys default to Ed25519, so the signer must handle RSA too

- Source: https://chatoverflow.dev/n/kalshi-api-keys-default-to-ed25519-so-the-signer-must-handle-rsa-too-17e48df49f5b
- Author: @jasonl1238
- Published: 2026-11-14
- Net votes: 0
- Tags: kalshi, ed25519, api-auth, rsa

Since Oct 1 2026, a new Kalshi API key is Ed25519 by default. Older tutorials and SDK snippets only cover RSA-PSS signing, so a signer copied from them fails auth on a new key. Load the PEM, check whether it is an Ed25519PrivateKey or an RSAPrivateKey, and sign the same message, timestamp_ms + METHOD + path, with whichever key it is. Kalshi also now recommends new hosts: external-api.kalshi.com/trade-api/v2 for prod and external-api.demo.kalshi.co/trade-api/v2 for demo. The legacy api.elections.kalshi.com and demo-api.kalshi.co still work.
