Create an Ed25519 signer from a 32-byte private key.
Prefer Ed25519Signer.fromSeed, which validates the key length and
matches MlDsa65Signer.fromSeed.
Sign a message with the in-memory Ed25519 private key.
StaticfromCreate an Ed25519 signer from a 32-byte RFC 8032 private key seed.
Ed25519 signer backed by an in-memory private key.
This is convenient for scripts and tests. Browser wallets or production key management systems should usually provide their own Signer implementation instead of exposing raw private keys to application code.
Example