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

signature: prevent malleability and overflows (backport to 3.0.3) #4

Open
wants to merge 2 commits into
base: 3.0.3
Choose a base branch
from

Conversation

mvayngrib
Copy link
Collaborator

@mvayngrib mvayngrib commented Aug 3, 2020

related: #3 (Signature.prototype._importDER copy-pasted from there, minus recoveryParam flag, which doesn't exist yet here)

used here: https://github.com/ExodusMovement/dcrcore-lib/blob/master/package.json#L85

run tests:

yarn mocha --reporter=spec test/*-test.js

@mvayngrib mvayngrib self-assigned this Aug 3, 2020
@mvayngrib mvayngrib requested a review from ChALkeR August 3, 2020 14:26
@mvayngrib mvayngrib requested review from Sekhmet and feri42 August 5, 2020 00:36
@@ -27,7 +27,8 @@
"jscs": "^1.11.3",
"jshint": "^2.6.0",
"mocha": "^2.1.0",
"uglify-js": "^2.4.13"
"uglify-js": "^2.4.13",
"bn.js": "2.0.4"
Copy link

@Sekhmet Sekhmet Aug 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change needed? bn.js was already used and it's in peerDependencies.

Copy link
Collaborator Author

@mvayngrib mvayngrib Aug 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, but it doesn't pass tests without bn.js in devDependencies (because it doesn't get installed)

Copy link

@Sekhmet Sekhmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@sonaye sonaye requested a review from joepie91 August 6, 2020 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants