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

units: Restore the +1 in relative locktime satisfied by height

Public commit record

What the developer wrote

Authored by Kyle 🐆

50/100 · Thin
units: Restore the +1 in relative locktime satisfied by height

Assisted-by: Claude Opus 5
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes an off-by-one bug in how rust-bitcoin checks whether a transaction can yet be spent based on block height. The code was treating a relative locktime of N blocks as satisfied after only N-1 confirmations, instead of the required N confirmations. This could let someone spend coins one block earlier than the Bitcoin protocol allows, which could cause a transaction to be rejected by the network or create inconsistent behavior between this library and other Bitcoin software.

Recommended action

Review whether this bug exists in any released version and, if so, assess whether it could cause users to construct invalid transactions. Consider a security advisory if the library is used by wallets or services that rely on accurate locktime enforcement. Verify that the fix matches Bitcoin Core's interpretation of BIP 68/112 relative locktime semantics.

Security signals we found

01

Off-by-one error in consensus-relevant locktime validation

02

Relative locktime satisfied one block too early

03

Could lead to premature transaction broadcast or mempool rejection

04

Consensus-adjacent code path in Bitcoin transaction validation

Risk score

Why this scored 61/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 10/15
Affected reach 10/15
Confidence 7/10
Evidence quality 4/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.