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

fix: add length check to Is(Un)compressedPubKey() #6

Merged
merged 1 commit into from
Dec 11, 2019

Conversation

0xB10C
Copy link
Owner

@0xB10C 0xB10C commented Dec 11, 2019

The functions did not check the length of the pushed data slice
before trying to to access it. This fixes it and additionally
restricts it to 33 byte (compressed) or 65 byte (uncompressed)
public keys.

The functions did not check the length of the pushed data slice
before trying to to access it. This fixes it and additonally
restricts it to 33 byte (compressed) or 65 byte (uncompressed)
public keys.
@0xB10C 0xB10C merged commit a8fe56e into master Dec 11, 2019
@0xB10C 0xB10C deleted the 2019-12-add-length-checks-for-pubkeys branch December 11, 2019 16:54
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.

1 participant