# crypto.sign.ecdsa: fix toCompressedSec1\(\)/toUnompressedSec1\(\) \(\#12009\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/38096960fb7defc707e002093de65e61ff8d94cd)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 38096960fb7defc707e002093de65e61ff8d94cd

Requested commit: 38096960fb7defc707e002093de65e61ff8d94cd

Commit: 38096960fb7defc707e002093de65e61ff8d94cd

Tree: cd5ba2b0317a7f4302d42584223dfeb4e02bc908

Author: Frank Denis

Committer: GitHub

## Message

```
crypto.sign.ecdsa: fix toCompressedSec1()/toUnompressedSec1() (#12009)

The Ecdsa.PublicKey type is not a direct alias for a curve element.

So, use the inner field containing the curve element for serialization.
```

## Parents

- [6279a1d684193ffbe34b384250cdbb5ab4a328f9](https://git.cafe/gitcafe/zig/commit/6279a1d684193ffbe34b384250cdbb5ab4a328f9?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/38096960fb7defc707e002093de65e61ff8d94cd?format=markdown)
