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

Update cryptography dependencies #1345

Merged
merged 15 commits into from
Mar 9, 2022

Conversation

remoun
Copy link
Contributor

@remoun remoun commented Jan 25, 2022

Motivation

There are some breaking changes in digest, which have cascaded to other crates so we have to update all the crates that depend on it transitively.

Builds on:
mobilecoinfoundation/KDFs#1
mobilecoinfoundation/bulletproofs#2
mobilecoinfoundation/curve25519-dalek#2
mobilecoinfoundation/ed25519-dalek#2
mobilecoinfoundation/x25519-dalek#2
mobilecoinfoundation/schnorrkel#2

In this PR

  • Update the forked versions we use with their respective dependency updates.
  • Some mechanical updates around breaking changes.

Fixes #1089.

Future Work

  • Update other dependencies to latest.
  • Dedupe deps.

Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
Copy link
Contributor

@cbeck88 cbeck88 left a comment

Choose a reason for hiding this comment

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

I did not review the changes in forks so in that sense my review is not complete. The code changes here all looked fine, just the changes in cargo toml looked problematic

  • Don't use personal forks
  • Pin to revisions not branches or else repeatable builds are undermined

Copy link
Contributor

@jcape jcape left a comment

Choose a reason for hiding this comment

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

Mostly looks good, I agree with Chris' comments as well, and there are a couple show-stoppers that have crept in.

Cargo.lock Outdated Show resolved Hide resolved
Cargo.lock Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
attest/ake/Cargo.toml Outdated Show resolved Hide resolved
crypto/ake/enclave/Cargo.toml Outdated Show resolved Hide resolved
peers/test-utils/src/lib.rs Outdated Show resolved Hide resolved
transaction/core/Cargo.toml Outdated Show resolved Hide resolved
transaction/core/src/membership_proofs/mod.rs Show resolved Hide resolved
transaction/core/src/tx.rs Outdated Show resolved Hide resolved
transaction/std/Cargo.toml Outdated Show resolved Hide resolved
@remoun remoun requested review from cbeck88 and jcape January 25, 2022 23:19
Copy link
Contributor

@jcape jcape left a comment

Choose a reason for hiding this comment

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

Looks good, will give formal approval once the other PRs have been merged and we've branched for 1.2.

Copy link
Contributor

@cbeck88 cbeck88 left a comment

Choose a reason for hiding this comment

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

approved based on reading all the dependent PRs

@remoun remoun requested review from cbeck88 and a team March 2, 2022 01:13
cbeck88
cbeck88 previously approved these changes Mar 2, 2022
Copy link
Contributor

@jcape jcape left a comment

Choose a reason for hiding this comment

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

This mostly LGTM, the main thing is making sure we're explictly requiring hkdf = "0.12.3", because we need at least 0.12.1, but there were various bugs fixed going into 0.12.3 that we need.

connection/Cargo.toml Outdated Show resolved Hide resolved
crypto/box/Cargo.toml Outdated Show resolved Hide resolved
account-keys/Cargo.toml Outdated Show resolved Hide resolved
crypto/noise/Cargo.toml Outdated Show resolved Hide resolved
transaction/core/Cargo.toml Show resolved Hide resolved
@jcape jcape requested a review from a team March 9, 2022 00:12
@remoun remoun requested a review from cbeck88 March 9, 2022 01:46
Copy link
Contributor

@cbeck88 cbeck88 left a comment

Choose a reason for hiding this comment

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

LGTM thank you

@remoun remoun merged commit 94651ea into mobilecoinfoundation:master Mar 9, 2022
@remoun remoun deleted the chore-update-crypto-deps branch March 9, 2022 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants