diff --git a/Cargo.lock b/Cargo.lock index 5b495f6e..2a382dd4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -452,6 +452,15 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" +[[package]] +name = "bs58" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" +dependencies = [ + "tinyvec", +] + [[package]] name = "bumpalo" version = "3.13.0" @@ -1620,6 +1629,15 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46" +[[package]] +name = "hkdf" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" +dependencies = [ + "hmac 0.12.1", +] + [[package]] name = "hmac" version = "0.8.1" @@ -2009,7 +2027,7 @@ dependencies = [ "libp2p-core", "libp2p-dns", "libp2p-identify", - "libp2p-identity", + "libp2p-identity 0.1.2", "libp2p-kad", "libp2p-mdns", "libp2p-metrics", @@ -2022,7 +2040,7 @@ dependencies = [ "libp2p-tcp", "libp2p-websocket", "libp2p-yamux", - "multiaddr", + "multiaddr 0.17.1", "pin-project", ] @@ -2033,7 +2051,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "510daa05efbc25184458db837f6f9a5143888f1caa742426d92e1833ddd38a50" dependencies = [ "libp2p-core", - "libp2p-identity", + "libp2p-identity 0.1.2", "libp2p-swarm", "void", ] @@ -2045,7 +2063,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4caa33f1d26ed664c4fe2cca81a08c8e07d4c1c04f2f4ac7655c2dd85467fda0" dependencies = [ "libp2p-core", - "libp2p-identity", + "libp2p-identity 0.1.2", "libp2p-swarm", "void", ] @@ -2061,9 +2079,9 @@ dependencies = [ "futures", "futures-timer", "instant", - "libp2p-identity", + "libp2p-identity 0.1.2", "log", - "multiaddr", + "multiaddr 0.17.1", "multihash 0.17.0", "multistream-select", "once_cell", @@ -2103,7 +2121,7 @@ dependencies = [ "futures", "futures-timer", "libp2p-core", - "libp2p-identity", + "libp2p-identity 0.1.2", "libp2p-swarm", "log", "lru", @@ -2120,10 +2138,10 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e2d584751cecb2aabaa56106be6be91338a60a0f4e420cf2af639204f596fc1" dependencies = [ - "bs58", + "bs58 0.4.0", "ed25519-dalek", "log", - "multiaddr", + "multiaddr 0.17.1", "multihash 0.17.0", "quick-protobuf", "rand 0.8.5", @@ -2132,6 +2150,21 @@ dependencies = [ "zeroize", ] +[[package]] +name = "libp2p-identity" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "999ec70441b2fb35355076726a6bc466c932e9bdc66f6a11c6c0aa17c7ab9be0" +dependencies = [ + "bs58 0.5.1", + "hkdf", + "multihash 0.19.1", + "quick-protobuf", + "sha2 0.10.8", + "thiserror", + "tracing", +] + [[package]] name = "libp2p-kad" version = "0.43.3" @@ -2147,7 +2180,7 @@ dependencies = [ "futures-timer", "instant", "libp2p-core", - "libp2p-identity", + "libp2p-identity 0.1.2", "libp2p-swarm", "log", "quick-protobuf", @@ -2170,7 +2203,7 @@ dependencies = [ "futures", "if-watch", "libp2p-core", - "libp2p-identity", + "libp2p-identity 0.1.2", "libp2p-swarm", "log", "rand 0.8.5", @@ -2223,7 +2256,7 @@ dependencies = [ "curve25519-dalek 3.2.0", "futures", "libp2p-core", - "libp2p-identity", + "libp2p-identity 0.1.2", "log", "once_cell", "quick-protobuf", @@ -2264,7 +2297,7 @@ dependencies = [ "futures-timer", "if-watch", "libp2p-core", - "libp2p-identity", + "libp2p-identity 0.1.2", "libp2p-tls", "log", "parking_lot 0.12.1", @@ -2285,7 +2318,7 @@ dependencies = [ "futures", "instant", "libp2p-core", - "libp2p-identity", + "libp2p-identity 0.1.2", "libp2p-swarm", "rand 0.8.5", "smallvec", @@ -2303,7 +2336,7 @@ dependencies = [ "futures-timer", "instant", "libp2p-core", - "libp2p-identity", + "libp2p-identity 0.1.2", "libp2p-swarm-derive", "log", "rand 0.8.5", @@ -2348,7 +2381,7 @@ dependencies = [ "futures", "futures-rustls", "libp2p-core", - "libp2p-identity", + "libp2p-identity 0.1.2", "rcgen", "ring 0.16.20", "rustls 0.20.8", @@ -2488,7 +2521,7 @@ version = "0.3.0" dependencies = [ "async-trait", "asynchronous-codec 0.7.0", - "bs58", + "bs58 0.4.0", "bytes", "cid", "ed25519-dalek", @@ -2500,7 +2533,7 @@ dependencies = [ "libc", "libp2p", "mockall 0.12.1", - "multiaddr", + "multiaddr 0.18.1", "multihash 0.17.0", "network-interface", "nohash-hasher", @@ -2770,6 +2803,25 @@ dependencies = [ "url", ] +[[package]] +name = "multiaddr" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b852bc02a2da5feed68cd14fa50d0774b92790a5bdbfa932a813926c8472070" +dependencies = [ + "arrayref", + "byteorder", + "data-encoding", + "libp2p-identity 0.2.8", + "multibase", + "multihash 0.19.1", + "percent-encoding", + "serde", + "static_assertions", + "unsigned-varint", + "url", +] + [[package]] name = "multibase" version = "0.9.1" @@ -2811,6 +2863,16 @@ dependencies = [ "unsigned-varint", ] +[[package]] +name = "multihash" +version = "0.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "076d548d76a0e2a0d4ab471d0b1c36c577786dfc4471242035d97a12a735c492" +dependencies = [ + "core2", + "unsigned-varint", +] + [[package]] name = "multihash-derive" version = "0.8.1" @@ -4163,7 +4225,7 @@ dependencies = [ "async-trait", "futures", "futures-timer", - "libp2p-identity", + "libp2p-identity 0.1.2", "log", "mockall 0.11.4", "parking_lot 0.12.1", @@ -4285,7 +4347,7 @@ dependencies = [ "async-trait", "bitflags 1.3.2", "futures", - "libp2p-identity", + "libp2p-identity 0.1.2", "parity-scale-codec", "prost-build", "sc-consensus", @@ -4858,7 +4920,7 @@ dependencies = [ "bitflags 1.3.2", "blake2", "bounded-collections", - "bs58", + "bs58 0.4.0", "dyn-clonable", "ed25519-zebra", "futures", diff --git a/Cargo.toml b/Cargo.toml index 6dcd8998..9b52934e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ hex-literal = "0.4.1" indexmap = { version = "2.0.0", features = ["std"] } libc = "0.2.142" mockall = "0.12.1" -multiaddr = "0.17.0" +multiaddr = "0.18.1" multihash = { version = "0.17.0", default-features = false, features = ["std", "multihash-impl", "identity", "sha2"] } network-interface = "1.1.1" parking_lot = "0.12.1"