X25519PrivateKey.publicKey

X25519PublicKey publicKey() const

Derives the public key corresponding to this private key.

Returns

The X25519PublicKey derived by multiplying the scalar

by the Curve25519 base point (9).