Skip to content

Conversation

julia-zack
Copy link
Contributor

@julia-zack julia-zack commented Aug 20, 2025

As a general rule, Bitcoin core enforces minimal encoding for numbers.
This protection was missing in the decodePositiveNConsideringEncoding function, which allowed leading zeroes, causing ambiguous encoding acceptance.

@julia-zack julia-zack requested a review from a team as a code owner August 20, 2025 22:03
julianlen
julianlen previously approved these changes Aug 21, 2025
Copy link
Contributor

@julianlen julianlen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments. Overall is perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants