Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Crypto primitives removed from ethkey #11174

Merged
merged 31 commits into from
Oct 23, 2019
Merged

Crypto primitives removed from ethkey #11174

merged 31 commits into from
Oct 23, 2019

Conversation

grbIzl
Copy link
Collaborator

@grbIzl grbIzl commented Oct 16, 2019

It's a continuation of https://github.com/paritytech/parity-common/pull/210/files and this code uses this PR as source for parity crypto. As soon as this code will be reviewed, the PR in parity crypto will be moved to merged and new corresponding version will be published. After that, the proper version for parity crypto will be inserted.

Content of this PR:

  • Crypto primitives removed from ethkey crate
  • All crates, that used them, reworked in order to use these primitives from parity-crypto crate

Please note, that most of the changes are straightforward replacements of includes (from ethkey to parity-crypto) and corresponding changes of API usages (like usages of renamed methods). It has two exceptions, where changes were not straightforward:

@grbIzl grbIzl added M4-core ⛓ Core client code / Rust. A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. labels Oct 16, 2019
Copy link
Collaborator

@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.

Looks real nice, good job. A few nits and imports like use some_crate::{AnItem} should be use some_crate:AnItem.

It's a big PR and mostly changes imports. If there is anything particular you'd like reviewers to look at it'd be great if you pointed out those areas in the description so we don't loose them in the noise.

accounts/ethkey/src/prefix.rs Outdated Show resolved Hide resolved
accounts/ethkey/src/prefix.rs Outdated Show resolved Hide resolved
accounts/ethstore/src/account/crypto.rs Outdated Show resolved Hide resolved
accounts/ethstore/src/account/crypto.rs Outdated Show resolved Hide resolved
accounts/ethstore/src/account/safe_account.rs Outdated Show resolved Hide resolved
accounts/ethstore/src/account/safe_account.rs Outdated Show resolved Hide resolved
ethcore/engines/clique/src/tests.rs Outdated Show resolved Hide resolved
secret-store/Cargo.toml Outdated Show resolved Hide resolved
@grbIzl
Copy link
Collaborator Author

grbIzl commented Oct 17, 2019

Looks real nice, good job. A few nits and imports like use some_crate::{AnItem} should be use some_crate:AnItem.

Actually I did this because of @niklasad1 requirements. He always asks to put the brackets in such cases :-)

It's a big PR and mostly changes imports. If there is anything particular you'd like reviewers to look at it'd be great if you pointed out those areas in the description so we don't loose them in the noise.

Yes, I will. I just need to achieve the green status on it first.

@niklasad1
Copy link
Collaborator

niklasad1 commented Oct 17, 2019

Actually I did this because of @niklasad1 requirements. He always asks to put the brackets in such cases :-)

Haha, that was really funny but actually I think you got it backward because I usually do this: #10056 (comment)

@grbIzl
Copy link
Collaborator Author

grbIzl commented Oct 17, 2019

Haha, that was really funny but actually I think you got it backward because I usually do this: #10056 (comment)

My bad (((

@grbIzl grbIzl added A0-pleasereview 🤓 Pull request needs code review. and removed A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. labels Oct 18, 2019
@grbIzl grbIzl requested a review from dvdplm October 18, 2019 09:57
Copy link
Collaborator

@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.

@svyatonik svyatonik added A7-looksgoodcantmerge 🙄 Pull request is reviewed well, but cannot be merged due to conflicts. and removed A0-pleasereview 🤓 Pull request needs code review. labels Oct 22, 2019
@niklasad1 niklasad1 added this to the 2.7 milestone Oct 23, 2019
@grbIzl grbIzl removed the A7-looksgoodcantmerge 🙄 Pull request is reviewed well, but cannot be merged due to conflicts. label Oct 23, 2019
@grbIzl grbIzl merged commit 834585d into master Oct 23, 2019
@grbIzl grbIzl deleted the SwitchFromEthKeyToCrypto branch October 23, 2019 11:03
dvdplm added a commit that referenced this pull request Oct 24, 2019
* master:
  Type annotation for next_key() matching of json filter options (#11192)
  Crypto primitives removed from ethkey (#11174)
  Made ecrecover implementation trait public (#11188)
  Remove unused macro_use. (#11191)
  [dependencies]: jsonrpc `14.0.1` (#11183)
  [receipt]: add `sender` & `receiver` to `RichReceipts` (#11179)
  [dependencies] bump rand 0.7 (#11022)
  [ethcore/builtin]: do not panic in blake2pricer on short input (#11180)
  TxPermissions ver 3: gas price & data (#11170)
  [ethash] chainspec validate `ecip1017EraRounds` non-zero (#11123)
  util Host: fix a double Read Lock bug in fn Host::session_readable() (#11175)
  ethcore client: fix a double Read Lock bug in fn Client::logs() (#11172)
  Aura: Report malice on sibling blocks from the same validator (#11160)
dvdplm added a commit that referenced this pull request Oct 24, 2019
* master:
  Type annotation for next_key() matching of json filter options (#11192)
  Crypto primitives removed from ethkey (#11174)
dvdplm added a commit that referenced this pull request Oct 24, 2019
* master:
  Pause pruning while snapshotting (#11178)
  Type annotation for next_key() matching of json filter options (#11192)
  Crypto primitives removed from ethkey (#11174)
  Made ecrecover implementation trait public (#11188)
  Remove unused macro_use. (#11191)
  [dependencies]: jsonrpc `14.0.1` (#11183)
  [receipt]: add `sender` & `receiver` to `RichReceipts` (#11179)
  [dependencies] bump rand 0.7 (#11022)
  [ethcore/builtin]: do not panic in blake2pricer on short input (#11180)
  TxPermissions ver 3: gas price & data (#11170)
  [ethash] chainspec validate `ecip1017EraRounds` non-zero (#11123)
  util Host: fix a double Read Lock bug in fn Host::session_readable() (#11175)
  ethcore client: fix a double Read Lock bug in fn Client::logs() (#11172)
  Aura: Report malice on sibling blocks from the same validator (#11160)
dvdplm added a commit that referenced this pull request Nov 6, 2019
* master: (21 commits)
  ropsten #6631425 foundation #8798209 (#11201)
  Update list of bootnodes for xDai chain (#11236)
  ethcore/res: add mordor testnet configuration (#11200)
  [chain specs]: activate `Istanbul` on mainnet (#11228)
  [builtin]: support `multiple prices and activations` in chain spec (#11039)
  Insert explicit warning into the panic hook (#11225)
  Snapshot restoration overhaul (#11219)
  Fix docker centos build (#11226)
  retry on gitlab system failures (#11222)
  Update bootnodes. (#11203)
  Use provided usd-per-eth value if an endpoint is specified (#11209)
  Use a lock instead of atomics for snapshot Progress (#11197)
  [informant]: `MillisecondDuration` -> `as_millis()` (#11211)
  Step duration map configuration parameter ported from the POA Network fork (#10902)
  Upgrade jsonrpc to latest (#11206)
  [export hardcoded sync]: use debug for `H256` (#11204)
  Pause pruning while snapshotting (#11178)
  Type annotation for next_key() matching of json filter options (#11192)
  Crypto primitives removed from ethkey (#11174)
  Made ecrecover implementation trait public (#11188)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants