From 457c646511f3c50faf20d05b80c1ef8c052b8c6d Mon Sep 17 00:00:00 2001 From: Rohit Narurkar Date: Tue, 16 Feb 2021 19:02:43 +0530 Subject: [PATCH] chore: use upgraded version for eth-keystore-rs (#193) --- Cargo.lock | 149 +++++++++++++++++--------------------- ethers-signers/Cargo.toml | 2 +- 2 files changed, 66 insertions(+), 85 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 13cc6b81..5c3d439e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -150,6 +150,12 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" +[[package]] +name = "base64ct" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22fb38fd6e62e4ceec8543db40ceb714454ff173451a0f2a6c8952fdf39a2d6c" + [[package]] name = "bincode" version = "1.3.1" @@ -388,6 +394,15 @@ dependencies = [ "subtle", ] +[[package]] +name = "ctr" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb4a30d54f7443bf3d6191dcd486aca19e67cb3c49fa7a06a319966346707e7f" +dependencies = [ + "cipher", +] + [[package]] name = "curl" version = "0.4.34" @@ -526,15 +541,22 @@ dependencies = [ [[package]] name = "eth-keystore" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96bf63261e2e008bc78d1dc363d118d59741b10322d9dd6cf7db5fbf58fa81af" +checksum = "1f1d4168fd77e9d9564bbdcb937efdad0df721dd159d2cb3f39d51efdbdf06f2" dependencies = [ + "aes", + "ctr", + "digest", "hex", + "hmac", + "pbkdf2", "rand 0.7.3", - "rust-crypto", + "scrypt", "serde", "serde_json", + "sha2", + "sha3", "thiserror", "uuid", ] @@ -799,12 +821,6 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "fuchsia-cprng" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba" - [[package]] name = "funty" version = "1.1.0" @@ -913,12 +929,6 @@ dependencies = [ "slab", ] -[[package]] -name = "gcc" -version = "0.3.55" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" - [[package]] name = "generic-array" version = "0.14.4" @@ -1461,12 +1471,26 @@ dependencies = [ ] [[package]] -name = "pbkdf2" -version = "0.7.2" +name = "password-hash" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e9dbbc79255e181e64afb7aee37d3b7e2e0925c20a6b05bba3ebe8ed82e6bfa" +checksum = "721a49e14f1803441886c688ba8b653b52e1dcc926969081d22384e300ea4106" dependencies = [ + "base64ct", + "rand_core 0.6.1", +] + +[[package]] +name = "pbkdf2" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "309c95c5f738c85920eb7062a2de29f3840d4f96974453fc9ac1ba078da9c627" +dependencies = [ + "base64ct", "crypto-mac", + "hmac", + "password-hash", + "sha2", ] [[package]] @@ -1627,29 +1651,6 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64de9a0c5361e034f1aefc9f71a86871ec870e766fe31a009734a989b329286a" -[[package]] -name = "rand" -version = "0.3.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64ac302d8f83c0c1974bf758f6b041c6c8ada916fbb44a609158ca8b064cc76c" -dependencies = [ - "libc", - "rand 0.4.6", -] - -[[package]] -name = "rand" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "552840b97013b1a26992c11eac34bdd778e464601a4c2054b5f0bff7c6761293" -dependencies = [ - "fuchsia-cprng", - "libc", - "rand_core 0.3.1", - "rdrand", - "winapi", -] - [[package]] name = "rand" version = "0.7.3" @@ -1695,21 +1696,6 @@ dependencies = [ "rand_core 0.6.1", ] -[[package]] -name = "rand_core" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b" -dependencies = [ - "rand_core 0.4.2", -] - -[[package]] -name = "rand_core" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc" - [[package]] name = "rand_core" version = "0.5.1" @@ -1746,15 +1732,6 @@ dependencies = [ "rand_core 0.6.1", ] -[[package]] -name = "rdrand" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2" -dependencies = [ - "rand_core 0.3.1", -] - [[package]] name = "redox_syscall" version = "0.2.4" @@ -1862,19 +1839,6 @@ dependencies = [ "libusb1-sys", ] -[[package]] -name = "rust-crypto" -version = "0.2.36" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f76d05d3993fd5f4af9434e8e436db163a12a9d40e1a58a726f27a01dfd12a2a" -dependencies = [ - "gcc", - "libc", - "rand 0.3.23", - "rustc-serialize", - "time", -] - [[package]] name = "rustc-demangle" version = "0.1.18" @@ -1887,12 +1851,6 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3e75f6a532d0fd9f7f13144f392b6ad56a32696bfcd9c78f797f16bbb6f072d6" -[[package]] -name = "rustc-serialize" -version = "0.3.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda" - [[package]] name = "rustls" version = "0.19.0" @@ -1912,6 +1870,15 @@ version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e" +[[package]] +name = "salsa20" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "399f290ffc409596022fce5ea5d4138184be4784f2b28c62c59f0d8389059a15" +dependencies = [ + "cipher", +] + [[package]] name = "schannel" version = "0.1.19" @@ -1922,6 +1889,20 @@ dependencies = [ "winapi", ] +[[package]] +name = "scrypt" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc92172b99814ff0b66ad8aca73619156a00a5bed5b441bf543123f2556987e0" +dependencies = [ + "base64ct", + "hmac", + "password-hash", + "pbkdf2", + "salsa20", + "sha2", +] + [[package]] name = "sct" version = "0.6.0" diff --git a/ethers-signers/Cargo.toml b/ethers-signers/Cargo.toml index 8e34498a..f2514777 100644 --- a/ethers-signers/Cargo.toml +++ b/ethers-signers/Cargo.toml @@ -19,7 +19,7 @@ thiserror = { version = "1.0.22", default-features = false } serde = { version = "1.0.123", default-features = false } coins-ledger = { version = "0.1.0", default-features = false, optional = true } -eth-keystore = { version = "0.1.0" } +eth-keystore = { version = "0.2.0" } hex = { version = "0.4.2", default-features = false, features = ["std"] } async-trait = { version = "0.1.40", default-features = false } elliptic-curve = { version = "0.8.4", default-features = false }