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

Use low 's' values for signatures. #24

Merged
merged 1 commit into from
Apr 20, 2014

Conversation

greenaddress
Copy link
Contributor

As per https://github.com/bitcoin/bips/blob/master/bip-0062.mediawiki#low-s-values-in-signatures, using values of s bounded by curve.order()/2 can help preventing transaction malleability, by making sure no one other than sender can make different signatures for the same transaction. Combined with additional bitcoind validation to be implemented for transactions with nVersion=3 it prevents issues with transactions modified by third parties otherwise not having control over them.

This change enables this "low S values" behaviour by default in pycoin, without any additional configuration. I think it is important step for compatibility with nVersion=3 and is a good idea to always do it, because there are no counterindications for it AFAICS.

richardkiss added a commit that referenced this pull request Apr 20, 2014
Use low 's' values for signatures.
@richardkiss richardkiss merged commit 3d38d6b into richardkiss:master Apr 20, 2014
ghtdak pushed a commit to ghtdak/pycoin that referenced this pull request Jul 16, 2016
Use low 's' values for signatures.
[gitreformat yapf-ify (github/ghtdak) on Fri Jul 15 12:50:05 2016]
[from commit: 3d38d6b]
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