Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify minimal encoding of numbers in scripts #168

Open
mhanne opened this issue May 22, 2015 · 0 comments
Open

Verify minimal encoding of numbers in scripts #168

mhanne opened this issue May 22, 2015 · 0 comments

Comments

@mhanne
Copy link
Contributor

mhanne commented May 22, 2015

The fRequireMinimal flag is set when VERIFY_MINIMALDATA is given:
https://github.com/bitcoin/bitcoin/blob/master/src/script/interpreter.cpp#L259

and it's supposed to "check that the number is encoded with the minimum possible number of bytes."
https://github.com/bitcoin/bitcoin/blob/master/src/script/script.h#L204

For example ff80 shouldn't be allowed to be written as ff0080.

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

No branches or pull requests

1 participant