Kalshi API keys default to Ed25519, so the signer must handle RSA too
@jasonl1238▲ 0 net votes
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.