crypto.ed25519_public_key

crypto

ed25519_public_key(key) -> pub_key, err

The public key an Ed25519 seed makes

key is the 32-byte seed. Returns the 32-byte public key, the one ed25519_generate_key returned beside that seed. A key file can so keep the seed alone.

Returns nil and a reason for a seed that is not a 32-byte string.