Message
Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.
What it means
The runtime lacks part of the WebCrypto API (Ed25519 key generation, signing, verification or digest).
What to do
- Node 20+ and modern browsers support Ed25519 in WebCrypto. Older Node, some React Native runtimes and insecure (http) contexts do not.
- Install
@solana/webcrypto-ed25519-polyfilland callinstall()before using Kit.