Public key creation using private key with curve25519

The private and public keys have been generated with curve25519 and wire-guard is used for secure communication.

I’m using the same public-private key pair for peer to peer communication over wire-guard VPN but communication doesn’t work.

This may be due to a problem with the generation of the public key.

Does anyone know how to generate public key using private key with curve25519 correctly ?