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

hashes: Remove code deprecated in 0.15.0

Public commit record

What the developer wrote

Authored by Tobin C. Harding

80/100 · Strong
hashes: Remove code deprecated in 0.15.0

Policy is to keep deprecated stuff for two releases. We have released
0.16.0 already so we can remove stuff deprecated in 0.15.0 (assuming
0.17.0 is out next).

Furthermore this assists with the `primitives` stable release because
it removes `FromSliceError` from the API of crates that call public
macros across crate boundaries from `hashes`.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
The short version

What changed, and why it matters

This commit removes old, deprecated functions from the rust-bitcoin `hashes` crate that were marked for removal two releases ago. It is a routine cleanup change: it deletes functions like `from_slice`, `const_hash`, and `as_u64` that users were already warned not to use, and switches internal code to use the newer replacements. There is no bug fix or security patch here.

Recommended action

No security action required. Downstream users should ensure they are not relying on the removed deprecated functions (`from_slice`, `const_hash`, `as_u64`, `serde_macros`) before upgrading, as this is a breaking API change.

Security signals we found

01

No security-relevant code change identified

02

Removal of deprecated public API only

03

No memory-safety, cryptographic, or input-validation changes

Risk score

Why this scored 19/100

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