Skip to content

Conversation

@str4d
Copy link
Contributor

@str4d str4d commented Feb 18, 2020

Includes patches that maintain consensus compatibility with libsodium 1.0.15 for Ed25519 pubkey and signature validation.

Replaces #4239. Closes #2872.

@str4d str4d added A-consensus Area: Consensus rules A-dependencies Area: Dependencies labels Feb 18, 2020
@str4d str4d requested review from daira and ebfull February 18, 2020 01:24
@str4d
Copy link
Contributor Author

str4d commented Feb 18, 2020

Note to reviewers: the patches to pubkey validation and signature validation are applied separately, because the pubkey validation patch on its own fixes all except one of the test case failures, while the signature validation patch is necessary to resolve the last failure, and proves that the set of valid signatures was altered in libsodium 1.0.16.

@ebfull
Copy link
Contributor

ebfull commented Feb 20, 2020

ACK. I also ran the tests on master without upgrading libsodium. Only concern might be the vagueness of the name test_consensus.cpp as plenty of other tests are of consensus-critical components as well.

@str4d
Copy link
Contributor Author

str4d commented Mar 3, 2020

Addressed @daira's comments.

Copy link
Contributor

@daira daira left a comment

Choose a reason for hiding this comment

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

Nit: "validatio" typo in the last commit comment. Otherwise utACK.

@daira
Copy link
Contributor

daira commented Mar 4, 2020

Once I've updated the spec I'd like someone to check consistency with this PR, but that doesn't need to block merging it.

(Needs one more review.)

@daira daira requested a review from defuse March 4, 2020 07:15
Some of the comments in the 1.0.15 code were incorrect.
@str4d str4d force-pushed the 2872-upgrade-libsodium branch from 2906fe3 to 0cca79a Compare March 6, 2020 03:19
@str4d
Copy link
Contributor Author

str4d commented Mar 6, 2020

Force-pushed to fix the commit comment. No change to PR.

@str4d str4d added this to the Core Sprint 2020-09 milestone Mar 6, 2020
Copy link
Contributor

@defuse defuse left a comment

Choose a reason for hiding this comment

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

utACK, looked over the old/new libsodium code to make sure the behavior is the same.

@str4d
Copy link
Contributor Author

str4d commented Mar 9, 2020

@zkbot r+

@zkbot
Copy link
Contributor

zkbot commented Mar 9, 2020

📌 Commit 0cca79a has been approved by str4d

@zkbot
Copy link
Contributor

zkbot commented Mar 9, 2020

⌛ Testing commit 0cca79a with merge 48550eab29a6415208881e52196cb53a33d03ed2...

@zkbot
Copy link
Contributor

zkbot commented Mar 9, 2020

💔 Test failed - pr-merge

@str4d
Copy link
Contributor Author

str4d commented Mar 10, 2020

Blocked on the new dependency being uploaded to the downloads server.

@mdr0id
Copy link
Contributor

mdr0id commented Mar 10, 2020

@zkbot retry

@zkbot
Copy link
Contributor

zkbot commented Mar 10, 2020

⌛ Testing commit 0cca79a with merge dcd3614...

@zkbot
Copy link
Contributor

zkbot commented Mar 10, 2020

☀️ Test successful - pr-merge
Approved by: str4d
Pushing dcd3614 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-consensus Area: Consensus rules A-dependencies Area: Dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Figure out how to safely upgrade to libsodium 1.0.16+

7 participants