Generates an Ed25519 public/private key pair for use with other methods in this package that accept CryptoKey objects.
CryptoKey
import { generateKeyPair } from '@solana/keys';const { privateKey, publicKey } = await generateKeyPair(); Copy
import { generateKeyPair } from '@solana/keys';const { privateKey, publicKey } = await generateKeyPair();
Generates an Ed25519 public/private key pair for use with other methods in this package that accept
CryptoKeyobjects.