api-wasm
    Preparing search index...

    Function generateSecretKey_secp256k1

    • 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.

      Returns any