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

Merge rust-bitcoin/rust-bitcoin#6667: Make the `WitnessesEncoder` private

Public commit record

What the developer wrote

Authored by Andrew Poelstra

91/100 · Strong
Merge rust-bitcoin/rust-bitcoin#6667: Make the `WitnessesEncoder` private

9c391145fa57dc54e6af1f18758db4e0ba2049de Update the API text files (Tobin C. Harding)
b37accc3db1f164a5b3dee7ff6bbd7a2d0af5be4 Make the WitnessesEncoder private (Tobin C. Harding)

Pull request description:

The `WitnessesEncoder` is an auxilary encoder that is used internally within the transaction encoder. It does not need to be public.

Make it private and put the code right below where it is used.


ACKs for top commit:
apoelstra:
ACK 9c391145fa57dc54e6af1f18758db4e0ba2049de; successfully ran local tests


Tree-SHA512: 1b950e7f3d19bf923325c75a4009dcc903a065cca87fccad638d3d19c53ea824a81b19a07e09eaff5603aea659366d2b80e51a8a694be6f24ae96f5ca0c9c9e7
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit makes a small internal helper type called WitnessesEncoder private. It was previously exported as public API but is only used inside the transaction encoder. The change removes it from the public API surface and moves the code closer to where it is used. There is no security bug being fixed here.

Recommended action

No security action needed. This is a routine API cleanup. Users who previously relied on `WitnessesEncoder` being public will need to update their code, but this is a breaking API change rather than a security fix.

Security signals we found

No strong security signals were identified.

Risk score

Why this scored 15/100

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