AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 46 Bitcoin

txscript: align empty CHECKSIG pubkey validation with Core

Public commit record

What the developer wrote

Authored by Olaoluwa Osuntokun

83/100 · Strong
txscript: align empty CHECKSIG pubkey validation with Core

The refreshed Bitcoin Core script reference tests cover cases where an
empty CHECKSIG input must still fail pubkey encoding checks before the
interpreter falls back to a generic false result.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
The short version

What changed, and why it matters

This change fixes a subtle mismatch between btcd and Bitcoin Core in how they handle a specific edge case in transaction script validation. When a signature is empty in a CHECKSIG operation, btcd previously skipped checking whether the provided public key was properly encoded and simply returned 'false'. Bitcoin Core, however, checks the public key encoding first and fails the script if the key is malformed. This patch makes btcd behave the same way, which is important for keeping all Bitcoin nodes in agreement about which transactions are valid.

Recommended action

Review and merge promptly, as consensus divergence between node implementations can lead to chain splits or transaction relay differences. Run the refreshed Bitcoin Core script reference tests to confirm alignment. Consider whether the same issue exists in related opcodes such as CHECKMULTISIG or CHECKSIGVERIFY.

Security signals we found

01

Consensus behavior divergence from reference implementation (Bitcoin Core)

02

Script validation edge case in CHECKSIG with empty signature

03

Potential for transaction validity disagreement between node implementations

04

Reference test suite update driving the change

Risk score

Why this scored 46/100

Our methodology →
Potential impact 12/30
Exploitability 8/25
Stealth signal 6/15
Affected reach 10/15
Confidence 7/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.