Generates an X25519 keypair (for OTKs and ephemeral keys).
Uses @noble/curves x25519.utils.randomSecretKey() for private key generation — direct X25519, NOT an Ed25519 key converted to Montgomery form.
A keypair with 32-byte privateKey and publicKey.
const { privateKey, publicKey } = generateX25519KeyPair();// privateKey is 32 random bytes Copy
const { privateKey, publicKey } = generateX25519KeyPair();// privateKey is 32 random bytes
Generates an X25519 keypair (for OTKs and ephemeral keys).
Uses @noble/curves x25519.utils.randomSecretKey() for private key generation — direct X25519, NOT an Ed25519 key converted to Montgomery form.