Generates a secret key using the secp256k1 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 secp256k1 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.