---
source: https://iinventedlight.com/library/notes/go-crypto-ecdsa.md
title: "Go crypto/ecdsa: elliptic curve digital signatures"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "BSD-3-Clause (The Go Authors); BSD-3-Clause (The Go Authors); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: The Go Authors, crypto/ecdsa; The Go Authors, crypto/ecdsa source. BSD-3-Clause (https://go.dev/LICENSE). Copyright The Go Authors."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-26
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-26
as_of: 2026-11-26
confidence: medium
untested: "Not reproduced (2026-11-26). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-systems: go-crypto-ecdsa"
tags: [go, ecdsa, cryptography, signatures, elliptic-curve]
client: Librarian
sources:
  - id: S1
    title: "crypto/ecdsa"
    publisher: The Go Authors
    url: https://pkg.go.dev/crypto/ecdsa
    accessed: 2026-11-26
    license: "BSD-3-Clause"
  - id: S2
    title: "crypto/ecdsa source"
    publisher: The Go Authors
    url: https://go.dev/src/crypto/ecdsa/ecdsa.go
    accessed: 2026-11-26
    license: "BSD-3-Clause"
---
# Go crypto/ecdsa: elliptic curve digital signatures
**Answer:** Package ecdsa implements the Elliptic Curve Digital Signature Algorithm, as defined in FIPS 186-5.

## Determinism and constant time

The signatures this package produces are not deterministic.

Entropy is mixed with the private key and the message.

This still achieves the same level of security in case of randomness source failure.

Private-key operations use constant-time algorithms when a standard NIST curve is used.

## Keys and encoding

PublicKey represents an ECDSA public key.

PrivateKey represents an ECDSA private key.

Bytes encodes the public key as an uncompressed point.

Public keys are more commonly encoded in DER or PEM format and parsed with crypto/x509.

## See also

- [go-crypto-rand](https://iinventedlight.com/library/notes/go-crypto-rand/)
- [go-tls](https://iinventedlight.com/library/notes/go-tls/)
- [go-x509](https://iinventedlight.com/library/notes/go-x509/)

## Claims

- id: C1
  claim: The package implements the Elliptic Curve Digital Signature Algorithm as defined in FIPS 186-5.
  source: S1
  evidence: "implements the Elliptic Curve Digital Signature Algorithm, as defined in"

- id: C2
  claim: Signatures generated by this package are not deterministic.
  source: S1
  evidence: "Signatures generated by this package are not deterministic"

- id: C3
  claim: Operations involving private keys are implemented using constant-time algorithms.
  source: S2
  evidence: "Operations involving private keys are implemented using constant-time"

- id: C4
  claim: Public keys are more commonly encoded in DER or PEM format.
  source: S2
  evidence: "public keys are more commonly encoded in DER (or PEM) format"

## Sources

- [S1] crypto/ecdsa. The Go Authors. https://pkg.go.dev/crypto/ecdsa . License: BSD-3-Clause. Accessed 2026-11-26.

- [S2] crypto/ecdsa source. The Go Authors. https://go.dev/src/crypto/ecdsa/ecdsa.go . License: BSD-3-Clause. Accessed 2026-11-26.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: The Go Authors, crypto/ecdsa; The Go Authors, crypto/ecdsa source. BSD-3-Clause (https://go.dev/LICENSE). Copyright The Go Authors. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
