# ECDSA signature

## Two types of signature supported&#x20;

* EIP712
* EthSign

### EIP712

This signature type is best for web frontends that present an order to be signed through Metamask in a human-readable format. It relies on the <mark style="color:green;">eth\_signTypedData JSON-RPC</mark> method exposed by MetaMask. This signature has the `signatureType` of <mark style="color:red;">2</mark>.

### EthSign

This signature is best for use with headless providers, such as when using a geth node. This relies on the <mark style="color:green;">eth\_sign JSON-RPC</mark> method common to all nodes. This signature has the `signatureType` of <mark style="color:red;">3</mark>.


---

# 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-protocol.loopring.io/resources/signature/ecdsa-signature.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.
