# Module /crypto/ecdsa

Elliptic Curve Digital Signature Algorithm (ECDSA) P-256 key generation, signing, and signature verification.

```tangu
(use /crypto/ecdsa)
```

## Functions & symbols

### verify-signature

`(verify-signature public-key message-hash signature) -> Bool`

Verifies an NIST P-256 ECDSA signature against `message_hash` and `public_key`.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `public_key` | `Slab` | no | P-256 public key bytes (SEC1 compressed/uncompressed or raw 64-byte X||Y) |
| `message_hash` | `Slab` | no | Message digest/payload bytes to verify against |
| `signature` | `Slab` | no | ECDSA signature bytes (ASN.1 DER or raw 64-byte r||s) |

```tangu
(ecdsa/verify-signature pub-slab msg-slab sig-slab)
```
