-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Crypto primitives removed from ethkey #11174
Conversation
There was a problem hiding this 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.
Actually I did this because of @niklasad1 requirements. He always asks to put the brackets in such cases :-)
Yes, I will. I just need to achieve the green status on it first. |
Haha, that was really funny but actually I think you got it backward because I usually do this: #10056 (comment) |
My bad ((( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
564739f
to
bb7ac3e
Compare
* 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)
* 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)
* 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) ...
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:
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:
Currently ethstore uses pretty weird scheme of ethkey re-export (ethkey crate included as _ethkey and included into other files via additional ethkey.rs). See here:
https://github.com/paritytech/parity-ethereum/pull/11174/files#diff-24ae21ec5c620e499b3380a7c69e172fL18 I've removed this and moved additional exports from ethkey.rs into ethstore lib.rs file. Hopefully, that simplifies the code
I had to call serialization methods in secret store more explicitly: https://github.com/paritytech/parity-ethereum/pull/11174/files#diff-2371ec7e676494334e9154656f32b190R95 because we removed ToHex trait implementation for Secret. Cc @svyatonik