ed25519PublicFromSeed

fnubyte[] ed25519PublicFromSeed(const(ubyte)[] seed)

Derives the 32-byte Ed25519 public key from a private seed.

Applies the RFC 8032 section 5.1.5 key derivation: expand the seed with SHA-512, clamp the first half to form the secret scalar, and multiply the base point by that scalar. Container formats that carry only the seed (PKCS#8 without a public-key field) use this to recover the matching public key.

Parameters

seedExactly 32 bytes of private key seed.

Returns

The 32-byte compressed public key.

Throws

CryptoException when the seed length is wrong.