Elliptic, which you are using, has been long unmaintained; recently had private keys leaks, and will have more https://github.com/advisories/GHSA-vjh7-7g9h-fjfh. Moreover, eddsa feature of it does not always produce correct outputs.