> For the complete documentation index, see [llms.txt](https://docs.seismic.systems/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.seismic.systems/clients/python/api-reference/transaction-types/signature.md).

# Signature

ECDSA signature components

ECDSA signature components for signed Seismic transactions.

## Definition

```python
@dataclass(frozen=True)
class Signature:
    v: int
    r: int
    s: int
```

## Fields

| Field | Type  | Description                             |
| ----- | ----- | --------------------------------------- |
| `v`   | `int` | Recovery identifier (0 or 1, y-parity)  |
| `r`   | `int` | First 32-byte integer of the signature  |
| `s`   | `int` | Second 32-byte integer of the signature |

## Example

```python
from eth_keys import keys as eth_keys
from seismic_web3 import Signature, PrivateKey

sk = eth_keys.PrivateKey(bytes(PrivateKey(...)))
sig_obj = sk.sign_msg_hash(b"\xab" * 32)

sig = Signature(v=sig_obj.v, r=sig_obj.r, s=sig_obj.s)
```

## Notes

* `v` is 0 or 1 (EIP-155 y-parity), not the legacy 27/28 values
* Typically created internally by signing functions — most users won't construct this directly

## See Also

* [sign\_seismic\_tx\_eip712](/clients/python/api-reference/eip712/sign-seismic-tx-eip712.md) — creates and applies signature
* [UnsignedSeismicTx](/clients/python/api-reference/transaction-types/unsigned-seismic-tx.md) — transaction before signing
* [PrivateKey](/clients/python/api-reference/types/private-key.md) — used to generate signatures


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.seismic.systems/clients/python/api-reference/transaction-types/signature.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
