'How do you load an ed25519 key string into nodejs?

I can generate a key with crypto.generateKeyPairSync()

But how do I go about loading it from a string/file?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source