@solana/kit · SubtleCrypto availability

Solana error #3610002

SUBTLE_CRYPTO__ED25519_ALGORITHM_UNIMPLEMENTED

Appears as Solana error #3610002; Decode this error by running `npx @solana/errors decode -- 3610002 '…'`

Message

This runtime does not support the generation of Ed25519 key pairs. Install @solana/webcrypto-ed25519-polyfill and call its `install` function before generating keys in environments that do not support Ed25519. For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.

What it means

The runtime's WebCrypto does not implement Ed25519.

What to do

  • Upgrade to Node 20+ or a modern browser, or install @solana/webcrypto-ed25519-polyfill and call install() at startup.

Decode it locally instead

npx @solana/errors decode -- 3610002 '<base64 context>'

In development, import from @solana/kit as usual and the full message is thrown. In production the message is stripped to keep bundles small; the error object still carries error.context with the same values this page decodes, and isSolanaError(err, SOLANA_ERROR__SUBTLE_CRYPTO__ED25519_ALGORITHM_UNIMPLEMENTED) lets you branch on it.

Decode another error

Try: