# Generate ECDSA Signature

Signs data using an Elliptic Curve Digital Signature Algorithm (ECDSA) private key.

In the diagram below, the dark rectangle represents the activity of signing some data using a private key that is stored at a safe location.

<figure><img src="/files/UuOmIg1ZHNz1wGPMfX8G" alt=""><figcaption></figcaption></figure>

Also see: [Create ECDSA Keys](/reference/plugins/overview/content/createecdsakeys.md), [Verify ECDSA Signature](/reference/plugins/overview/content/verifyecdsasignature.md).

***

## Properties

### Private key

The private ECDSA key to use to generate the signed data (see [Create ECDSA Keys](/reference/plugins/overview/content/createecdsakeys.md)).\
The key can be given as a list of bytes or a base64 string.

### Hash algorithm

The hash algorithm to use when signing the data.

Options:

* SHA256 - [learn more](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.sha256?view=net-7.0)
* SHA384 - [learn more](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.sha384?view=net-7.0)
* SHA512 - [learn more](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.sha512?view=net-7.0)

### Data

The data to sign. This can be a list of bytes or a base64 string.

***

## Definition

The ECDSA signature in the form of a list of bytes.

***

## Example

A simple usage scenario is where the private key is retrieved from a local database and used to sign some data which is received as input.

***

## Links

* [Wikipedia: Elliptic Curve Digital Signature Algorithm](https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.linx.software/reference/plugins/overview/content/generateecdsasignature.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
