THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Did Bitcoin BIP66 Change the ECDSA Signature Algorithm?

permalink THAMER
#bip66#bitcoin-signatures#der-encoding#ecdsa

No. BIP66 did not replace ECDSA or change the underlying elliptic-curve signature algorithm. It tightened the consensus rules for how ECDSA signatures must be encoded in Bitcoin Script.

What actually changed?

ECDSA signatures consist mathematically of two integer values, r and s. The DER representation serializes those integers into bytes. BIP66 requires a strict form of that representation, rejecting malformed or noncanonical encodings that might have been accepted by permissive parsers.

The sighash-type byte appended to a Bitcoin ECDSA signature is not part of the DER structure itself. A developer implementing Script validation must account for that distinction.

Why was it necessary?

Consensus requires nodes to interpret identical transaction bytes consistently. Strict encoding reduces reliance on differences among external signature-parsing libraries and makes accepted signature formats more predictable.

Is this the same as Taproot's Schnorr signatures?

No. Taproot uses BIP340 Schnorr signatures under separate rules. BIP66's DER format does not describe those signatures.

Primary references

BIP66 — Strict DER signatures: https://github.com/bitcoin/bips/blob/master/bip-0066.mediawiki
BIP340 — Schnorr Signatures: https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects