diff --git a/Cargo.lock b/Cargo.lock index da2dabc7f..e191732e3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6313,11 +6313,12 @@ name = "xmtp_cryptography" version = "0.1.0" dependencies = [ "curve25519-dalek", - "ecdsa 0.15.1", + "ecdsa 0.16.9", "ethers", "ethers-core", + "getrandom", "hex", - "k256 0.12.0", + "k256 0.13.3", "log", "rand", "rand_chacha", diff --git a/Cargo.toml b/Cargo.toml index 4048b2f7b..977fe4527 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -59,6 +59,7 @@ tonic = "^0.11" tracing = { version = "0.1" } tracing-subscriber = "0.3" url = "2.5.0" +getrandom = { version = "0.2", default-features = false } # Internal Crate Dependencies xmtp_cryptography = { path = "xmtp_cryptography" } diff --git a/bindings_ffi/Cargo.lock b/bindings_ffi/Cargo.lock index 613099112..4b796c348 100644 --- a/bindings_ffi/Cargo.lock +++ b/bindings_ffi/Cargo.lock @@ -5758,11 +5758,12 @@ name = "xmtp_cryptography" version = "0.1.0" dependencies = [ "curve25519-dalek", - "ecdsa 0.15.1", + "ecdsa 0.16.9", "ethers", "ethers-core", + "getrandom", "hex", - "k256 0.12.0", + "k256 0.13.3", "log", "rand", "rand_chacha", diff --git a/bindings_node/Cargo.lock b/bindings_node/Cargo.lock index 8668af521..6dd0df229 100644 --- a/bindings_node/Cargo.lock +++ b/bindings_node/Cargo.lock @@ -5215,11 +5215,12 @@ name = "xmtp_cryptography" version = "0.1.0" dependencies = [ "curve25519-dalek", - "ecdsa 0.15.1", + "ecdsa 0.16.9", "ethers", "ethers-core", + "getrandom", "hex", - "k256 0.12.0", + "k256 0.13.3", "log", "rand", "rand_chacha", diff --git a/xmtp_api_grpc_gateway/Cargo.toml b/xmtp_api_grpc_gateway/Cargo.toml index 3fb0db72f..c2d975d87 100644 --- a/xmtp_api_grpc_gateway/Cargo.toml +++ b/xmtp_api_grpc_gateway/Cargo.toml @@ -9,7 +9,7 @@ crate-type = ["cdylib", "rlib"] [dependencies] async-trait = "0.1.68" futures = "0.3.29" -getrandom = { version = "0.2", features = ["js"] } +getrandom = { workspace = true, features = ["js"] } hex = "0.4" js-sys = "0.3" prost = { version = "^0.12", features = ["prost-derive"] } diff --git a/xmtp_cryptography/Cargo.toml b/xmtp_cryptography/Cargo.toml index 3b59b57be..1290f85b4 100644 --- a/xmtp_cryptography/Cargo.toml +++ b/xmtp_cryptography/Cargo.toml @@ -2,15 +2,15 @@ name = "xmtp_cryptography" version = "0.1.0" edition = "2021" -rust-version = "1.64" +rust-version = "1.70" [dependencies] curve25519-dalek = "4" -ecdsa = "0.15.1" +ecdsa = "0.16.9" ethers = { workspace = true } ethers-core = { workspace = true } hex = { workspace = true } -k256 = { version = "0.12.0", features = ["ecdh"] } +k256 = { version = "0.13.3", features = ["ecdh"] } log = { workspace = true } rand = { workspace = true } rand_chacha = "0.3.1" @@ -20,6 +20,9 @@ sha2 = "0.10.7" sha3 = "0.10.6" thiserror = { workspace = true } +[target.'cfg(target_arch = "wasm32")'.dependencies] +getrandom = { workspace = true, features = ["js"] } + [features] ws = ["ethers/ws"] diff --git a/xmtp_v2/Cargo.toml b/xmtp_v2/Cargo.toml index f99ad24c0..0667ef1b6 100644 --- a/xmtp_v2/Cargo.toml +++ b/xmtp_v2/Cargo.toml @@ -8,7 +8,7 @@ rust-version = "1.64" aes-gcm = "0.10.1" ecdsa = "0.15.1" generic-array = "0.14.6" -getrandom = { version = "0.2.8", features = ["js"] } +getrandom = { workspace = true, features = ["js"] } hex = { workspace = true } hkdf = "0.12.3" k256 = { version = "0.12.0", features = ["ecdh"] }