Skip to content

Bump secp256k1 to 0.19, use global context#438

Merged
niklasad1 merged 4 commits into
paritytech:masterfrom
vorot93:bump-secp256k1
Nov 13, 2020
Merged

Bump secp256k1 to 0.19, use global context#438
niklasad1 merged 4 commits into
paritytech:masterfrom
vorot93:bump-secp256k1

Conversation

@vorot93
Copy link
Copy Markdown
Contributor

@vorot93 vorot93 commented Nov 7, 2020

No description provided.

dvdplm
dvdplm previously approved these changes Nov 9, 2020
@dvdplm
Copy link
Copy Markdown
Contributor

dvdplm commented Nov 9, 2020

Needs cargo fmt run.

The test failure is actually relevant: all-zero messages are not invalid anymore. I think this is alright for ethereum but my memory is weak and I don't remember the details tbh.

@dvdplm dvdplm dismissed their stale review November 9, 2020 08:32

Jumped the gun, sorry!

@niklasad1
Copy link
Copy Markdown
Contributor

niklasad1 commented Nov 9, 2020

The test failure is actually relevant: all-zero messages are not invalid anymore. I think this is alright for ethereum but my memory is weak and I don't remember the details tbh.

rust-bitcoin/rust-secp256k1#207 is included in this release. I think you are right.

Do you remember the ethereum ecrecover builtin bug :)?

//cc @sorpaas I guess you know this ^^

@ordian
Copy link
Copy Markdown
Contributor

ordian commented Nov 9, 2020

yeah, I think we should remove the failing test and ZeroesAllowedMessage or do you have another suggestion? :)

@niklasad1
Copy link
Copy Markdown
Contributor

niklasad1 commented Nov 9, 2020

yeah, I think we should remove the failing test and ZeroesAllowedMessage or do you have another suggestion? :)

I completely agree to remove the failing test.

@sorpaas
Copy link
Copy Markdown
Contributor

sorpaas commented Nov 9, 2020

@ordian @niklasad1 I'd propose we change this failing test to be "test zero message is valid".

I'll let the OpenEthereum people know about this just in case.

Copy link
Copy Markdown
Contributor

@dvdplm dvdplm left a comment

Choose a reason for hiding this comment

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

LGTM. Can you please add this to the CHANGELOG as a breaking change? :)

@vorot93
Copy link
Copy Markdown
Contributor Author

vorot93 commented Nov 12, 2020

@dvdplm done

@vorot93
Copy link
Copy Markdown
Contributor Author

vorot93 commented Nov 13, 2020

@dvdplm @ordian @sorpaas should be ready for merge

@niklasad1 niklasad1 merged commit 539a279 into paritytech:master Nov 13, 2020
@vorot93 vorot93 deleted the bump-secp256k1 branch November 13, 2020 22:53
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.

5 participants