Generating ed25519 signatures for api requests in C++

Hello Folks,
I’m trying to generate ed25519 signatures for sending requests to signed endpoints in C++. I was successfully doing it in HMAC but now i want to do it using ed25519 keys and is not able to do so.
Please help.