Actually you will use this:
ssh-keygen -t ed25519
To print that public part do:
cat ~/.ssh/id_xxxxx.pub C