# ECDSA

The Zodor protocol uses the **Elliptic Curve Digital Signature Algorithm** to secure transactions and verify authenticity across blockchain operations. ECDSA appears at three layers:

1. **EOA signatures** for legacy compatibility
2. **ERC-4337 UserOp signing** by the smart wallet's owner key
3. **ERC-1271 contract signatures** so the smart wallet itself can sign messages (for off-chain orderbooks, login challenges, etc.)

**Core Mechanism**

1. **Signature Generation** transactions and UserOps are signed with the user's private key (held in the device Secure Enclave on mobile or a passkey on web)
2. **Public-Key Verification** the sender's public key validates the signature; the EntryPoint runs validation as part of UserOp processing
3. **Tamper Detection**  any data modification invalidates the signature

**Primary Applications**

* Transaction authorization for asset transfers
* UserOp validation in the ERC-4337 flow
* Off-chain data verification through signed messages (login, dividend claim attestations)
* Bridge message authentication (CCIP `MessageId` receipts, LayerZero OFT signatures)

**Key Benefits**

* **Authenticity**  confirms rightful account ownership
* **Data Integrity**  prevents transaction manipulation
* **Operational Security**  protects against fraud
* **Efficiency**  lightweight for scalable operations


---

# 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://whitepaper.zodor.io/system-architecture/overview-of-the-protocol/ecdsa.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.
