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

Fixed script.isPublicKeyHashIn bug with variable length signatures. #1213

Merged
merged 1 commit into from
May 11, 2015

Conversation

braydonf
Copy link
Contributor

@braydonf braydonf commented May 9, 2015

- DER encoded signatures have a max length of 72 bytes, however a minimum size isn't defined.
- R and S values can have arbitrary lengths
- For more information: https://github.com/bitcoin/bips/blob/master/bip-0062.mediawiki#der-encoding
@braydonf braydonf force-pushed the bug/is-fully-signed branch from acef641 to d8e9068 Compare May 9, 2015 02:09
@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.71% when pulling d8e9068 on braydonf:bug/is-fully-signed into baf39f3 on bitpay:master.

@maraoz
Copy link
Contributor

maraoz commented May 9, 2015

ACK. We should maybe add something like Signature.isValid in the future

@martindale
Copy link
Contributor

We should add some fixtures for this particular case; #1221 for tracking. Otherwise, nice work.

martindale added a commit that referenced this pull request May 11, 2015
Fixed script.isPublicKeyHashIn bug with variable length signatures.
@martindale martindale merged commit 9931254 into bitpay:master May 11, 2015
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.

4 participants