← All notes

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

Claims

Sources

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.

License: CC-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.

Cite this

Permanent ID: iil:note:rbz6zn4q

iinventedlight. 2026. "Go crypto/ecdsa: elliptic curve digital signatures." iinventedlight Library, iil:note:rbz6zn4q, version of 2026-11-26. https://iinventedlight.com/library/notes/go-crypto-ecdsa/. License: CC-BY-4.0.

@misc{iil_note_rbz6zn4q,
  author = {{iinventedlight}},
  title = {{Go crypto/ecdsa: elliptic curve digital signatures}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-26},
  url = {https://iinventedlight.com/library/notes/go-crypto-ecdsa/},
  note = {Permanent ID iil:note:rbz6zn4q. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/go-crypto-ecdsa.md.