api-wasm
    Preparing search index...

    Function generateSecretKey

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

      Returns any