Skip to content

ed25519Generator

const ed25519Generator: Ed25519Generator = nobleEd25519Generator

Defined in: packages/crypto/src/ed25519.ts:63

Generates an ed25519 keypair and a raw signer function using the default ed25519 implementation (currently @noble/ed25519). The implementation may change in the future. To explicitly use the @noble/ed25519 implementation, use nobleEd25519Generator.

Optional seed for key generation. If not provided, a random seed will be used.

An object containing the ed25519 public key, secret key, and a raw signer function.