Generates a secret key using the Ed25519 algorithm and returns it as a PEM-encoded string.
A JsValue containing the PEM-encoded secret key or a JavaScript error if an error occurs.
JsValue
Returns an error if the secret key generation or serialization fails.
Generates a secret key using the Ed25519 algorithm and returns it as a PEM-encoded string.
Returns
A
JsValue
containing the PEM-encoded secret key or a JavaScript error if an error occurs.Errors
Returns an error if the secret key generation or serialization fails.