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

DER format signatures #440

Merged
merged 6 commits into from Jul 17, 2014
Merged

DER format signatures #440

merged 6 commits into from Jul 17, 2014

Conversation

ryanxcharles
Copy link
Contributor

In the Great Crypto Update, I accidentally wronged the code that made signatures so that they weren't in proper DER format. This was causing signatures created by bitcore to be rejected by bitcoin-qt clients. I've fixed this by creating some new functions in common/Key that create and parse DER signatures in a very explicit and detailed way so that this particular problem doesn't arise again. I've also fixed a number of minor issues related to signatures and crypto, such as exposing the "sign" and "genk" functions in Key, and getting rid of the deprecated Curve class.

I found this thread helpful: https://bitcointalk.org/index.php?topic=653313.0

Closes #438

Ryan X. Charles added 6 commits July 17, 2014 13:09
both creating DER signature from the r and s values, and parsing a DER
signature into the r, s, and other properties.
"sign" and "genk" ... and add some signature tests
To make it easier to test the master branch of bitcore with other apps,
especially Copay.
ryanxcharles pushed a commit that referenced this pull request Jul 17, 2014
@ryanxcharles ryanxcharles merged commit f54dab3 into bitpay:master Jul 17, 2014
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.13%) when pulling 0c8f7d4 on ryanxcharles:feature/der-signatures into b8b500e on bitpay:master.

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.

Signature problem
2 participants