bump coins-bip39 to 0.8.1 and coins-bip32 to 0.8.0 (#2246)

This commit is contained in:
StackOverflowExcept1on 2023-03-13 22:42:25 +03:00 committed by GitHub
parent fcc9a48089
commit 11287f4941
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 9 deletions

14
Cargo.lock generated
View File

@ -598,9 +598,9 @@ dependencies = [
[[package]] [[package]]
name = "coins-bip32" name = "coins-bip32"
version = "0.7.0" version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "634c509653de24b439672164bbf56f5f582a2ab0e313d3b0f6af0b7345cf2560" checksum = "8a3b95d26eace980ade01e0ea8d996f7d5ae7031f9c5f258317ec82e400f33c1"
dependencies = [ dependencies = [
"bincode", "bincode",
"bs58", "bs58",
@ -617,26 +617,28 @@ dependencies = [
[[package]] [[package]]
name = "coins-bip39" name = "coins-bip39"
version = "0.7.0" version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a11892bcac83b4c6e95ab84b5b06c76d9d70ad73548dd07418269c5c7977171" checksum = "a05ceda6ab4876de899fe23e8a171b200be9a346289bce12d41311e4bce2f104"
dependencies = [ dependencies = [
"bitvec 0.17.4", "bitvec 0.17.4",
"coins-bip32", "coins-bip32",
"getrandom 0.2.8", "getrandom 0.2.8",
"hex", "hex",
"hmac 0.12.1", "hmac 0.12.1",
"once_cell",
"pbkdf2", "pbkdf2",
"rand 0.8.5", "rand 0.8.5",
"sha2 0.10.6", "sha2 0.10.6",
"thiserror", "thiserror",
"tracing",
] ]
[[package]] [[package]]
name = "coins-core" name = "coins-core"
version = "0.7.0" version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c94090a6663f224feae66ab01e41a2555a8296ee07b5f20dab8888bdefc9f617" checksum = "87637d08a1dd6bfa3bcd697f0a4de6c1b3a03e085b9d841a7e9cde4ccb61514b"
dependencies = [ dependencies = [
"base58check", "base58check",
"base64 0.12.3", "base64 0.12.3",

View File

@ -18,8 +18,8 @@ rustdoc-args = ["--cfg", "docsrs"]
[dependencies] [dependencies]
ethers-core = { version = "^2.0.0", path = "../ethers-core", features = ["eip712"] } ethers-core = { version = "^2.0.0", path = "../ethers-core", features = ["eip712"] }
thiserror = { version = "1.0.39", default-features = false } thiserror = { version = "1.0.39", default-features = false }
coins-bip32 = "0.7.0" coins-bip32 = "0.8.0"
coins-bip39 = "0.7.0" coins-bip39 = "0.8.1"
coins-ledger = { version = "0.7.1", default-features = false, optional = true } coins-ledger = { version = "0.7.1", default-features = false, optional = true }
hex = { version = "0.4.3", default-features = false, features = ["std"] } hex = { version = "0.4.3", default-features = false, features = ["std"] }
async-trait = { version = "0.1.50", default-features = false } async-trait = { version = "0.1.50", default-features = false }

View File

@ -168,7 +168,7 @@ impl<W: Wordlist> MnemonicBuilder<W> {
// Write the mnemonic phrase to storage if a directory has been provided. // Write the mnemonic phrase to storage if a directory has been provided.
if let Some(dir) = &self.write_to { if let Some(dir) = &self.write_to {
let mut file = File::create(dir.as_path().join(to_checksum(&wallet.address, None)))?; let mut file = File::create(dir.as_path().join(to_checksum(&wallet.address, None)))?;
file.write_all(mnemonic.to_phrase()?.as_bytes())?; file.write_all(mnemonic.to_phrase().as_bytes())?;
} }
Ok(wallet) Ok(wallet)