diff --git a/Cargo.lock b/Cargo.lock index c04038391..c8c82c179 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -27,15 +27,6 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" -[[package]] -name = "aead" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877" -dependencies = [ - "generic-array", -] - [[package]] name = "aead" version = "0.5.2" @@ -46,18 +37,6 @@ dependencies = [ "generic-array", ] -[[package]] -name = "aes" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e8b47f52ea9bae42228d07ec09eb676433d7c4ed1ebdf0f1d1c29ed446f1ab8" -dependencies = [ - "cfg-if", - "cipher 0.3.0", - "cpufeatures", - "opaque-debug", -] - [[package]] name = "aes" version = "0.8.3" @@ -69,31 +48,17 @@ dependencies = [ "cpufeatures", ] -[[package]] -name = "aes-gcm" -version = "0.9.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc3be92e19a7ef47457b8e6f90707e12b6ac5d20c6f3866584fa3be0787d839f" -dependencies = [ - "aead 0.4.3", - "aes 0.7.5", - "cipher 0.3.0", - "ctr 0.7.0", - "ghash 0.4.4", - "subtle", -] - [[package]] name = "aes-gcm" version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "831010a0f742e1209b3bcea8fab6a8e149051ba6099432c8cb2cc117dec3ead1" dependencies = [ - "aead 0.5.2", - "aes 0.8.3", + "aead", + "aes", "cipher 0.4.4", - "ctr 0.9.2", - "ghash 0.5.0", + "ctr", + "ghash", "subtle", ] @@ -103,7 +68,7 @@ version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a824f2aa7e75a0c98c5a504fceb80649e9c35265d44525b5f94de4771a395cd" dependencies = [ - "getrandom 0.2.11", + "getrandom", "once_cell", "version_check", ] @@ -840,6 +805,15 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +[[package]] +name = "autotools" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aef8da1805e028a172334c3b680f93e71126f2327622faef2ec3d893c0a4ad77" +dependencies = [ + "cc", +] + [[package]] name = "axum" version = "0.6.20" @@ -867,7 +841,7 @@ dependencies = [ "serde_json", "serde_path_to_error", "serde_urlencoded", - "sha1", + "sha1 0.10.6", "sync_wrapper", "tokio", "tokio-tungstenite", @@ -945,9 +919,9 @@ dependencies = [ [[package]] name = "base58-monero" -version = "1.0.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d079cdf47e1ca75554200bb2f30bff5a5af16964cac4a566b18de9a5d48db2b" +checksum = "978e81a45367d2409ecd33369a45dda2e9a3ca516153ec194de1fbda4b9fb79d" dependencies = [ "thiserror", ] @@ -1143,47 +1117,26 @@ dependencies = [ [[package]] name = "borsh" -version = "0.10.3" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4114279215a005bc675e386011e594e1d9b800918cea18fcadadcce864a2046b" +checksum = "f58b559fd6448c6e2fd0adb5720cd98a2506594cafa4737ff98c396f3e82f667" dependencies = [ "borsh-derive", - "hashbrown 0.13.2", + "cfg_aliases", ] [[package]] name = "borsh-derive" -version = "0.10.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0754613691538d51f329cce9af41d7b7ca150bc973056f1156611489475f54f7" -dependencies = [ - "borsh-derive-internal", - "borsh-schema-derive-internal", - "proc-macro-crate 0.1.5", - "proc-macro2", - "syn 1.0.109", -] - -[[package]] -name = "borsh-derive-internal" -version = "0.10.3" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afb438156919598d2c7bad7e1c0adf3d26ed3840dbc010db1a882a65583ca2fb" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "borsh-schema-derive-internal" -version = "0.10.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634205cc43f74a1b9046ef87c4540ebda95696ec0f315024860cad7c5b0f5ccd" +checksum = "7aadb5b6ccbd078890f6d7003694e33816e6b784358f18e15e7e6d9f065a57cd" dependencies = [ + "once_cell", + "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.48", + "syn_derive", ] [[package]] @@ -1306,7 +1259,7 @@ dependencies = [ "serde", "serde_derive", "serde_json", - "sha1", + "sha1 0.10.6", "sha2", "ssri", "tempfile", @@ -1426,9 +1379,9 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ae3c82e4355234767756212c570e29833699ab63e6ffd161887314cc5b43847" dependencies = [ - "aead 0.5.2", + "aead", "cipher 0.4.4", - "ctr 0.9.2", + "ctr", "subtle", ] @@ -1448,26 +1401,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] -name = "chacha20" -version = "0.7.3" +name = "cfg_aliases" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f08493fa7707effc63254c66c6ea908675912493cd67952eda23c09fae2610b1" -dependencies = [ - "cfg-if", - "cipher 0.3.0", - "cpufeatures", -] +checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" [[package]] name = "chacha20" -version = "0.8.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c80e5460aa66fe3b91d40bcbdab953a597b60053e34d684ac6903f863b680a6" +checksum = "f08493fa7707effc63254c66c6ea908675912493cd67952eda23c09fae2610b1" dependencies = [ "cfg-if", "cipher 0.3.0", "cpufeatures", - "zeroize", ] [[package]] @@ -1481,29 +1428,16 @@ dependencies = [ "cpufeatures", ] -[[package]] -name = "chacha20poly1305" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a18446b09be63d457bbec447509e85f662f32952b035ce892290396bc0b0cff5" -dependencies = [ - "aead 0.4.3", - "chacha20 0.8.2", - "cipher 0.3.0", - "poly1305 0.7.2", - "zeroize", -] - [[package]] name = "chacha20poly1305" version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "10cd79432192d1c0f4e1a0fef9527696cc039165d729fb41b3f4f4f354c2dc35" dependencies = [ - "aead 0.5.2", + "aead", "chacha20 0.9.1", "cipher 0.4.4", - "poly1305 0.8.0", + "poly1305", "zeroize", ] @@ -2102,7 +2036,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ "generic-array", - "rand_core 0.6.4", + "rand_core", "subtle", "zeroize", ] @@ -2114,19 +2048,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ "generic-array", - "rand_core 0.6.4", + "rand_core", "typenum", ] -[[package]] -name = "ctr" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a232f92a03f37dd7d7dd2adc67166c77e9cd88de5b019b9a9eecfaeaf7bfd481" -dependencies = [ - "cipher 0.3.0", -] - [[package]] name = "ctr" version = "0.9.2" @@ -2228,19 +2153,6 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "curve25519-dalek" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61" -dependencies = [ - "byteorder", - "digest 0.9.0", - "rand_core 0.5.1", - "subtle", - "zeroize", -] - [[package]] name = "curve25519-dalek" version = "4.1.1" @@ -2514,6 +2426,18 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c877555693c14d2f84191cfd3ad8582790fc52b5e2274b40b59cf5f5cea25c7" +[[package]] +name = "dialoguer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59c6f2989294b9a498d3ad5491a79c6deb604617378e1cdc4bfc1c1361fe2f87" +dependencies = [ + "console", + "shell-words", + "tempfile", + "zeroize", +] + [[package]] name = "diesel" version = "2.1.4" @@ -2707,9 +2631,9 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f628eaec48bfd21b865dc2950cfa014450c01d2fa2b69a86c2fd5844ec523c0" dependencies = [ - "curve25519-dalek 4.1.1", + "curve25519-dalek", "ed25519", - "rand_core 0.6.4", + "rand_core", "serde", "sha2", "subtle", @@ -2737,7 +2661,7 @@ dependencies = [ "hkdf", "pem-rfc7468", "pkcs8", - "rand_core 0.6.4", + "rand_core", "sec1", "subtle", "zeroize", @@ -3015,7 +2939,7 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" dependencies = [ - "rand_core 0.6.4", + "rand_core", "subtle", ] @@ -3099,6 +3023,12 @@ dependencies = [ "winapi", ] +[[package]] +name = "fs_extra" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" + [[package]] name = "funty" version = "2.0.0" @@ -3278,17 +3208,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "getrandom" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" -dependencies = [ - "cfg-if", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", -] - [[package]] name = "getrandom" version = "0.2.11" @@ -3297,17 +3216,7 @@ checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f" dependencies = [ "cfg-if", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", -] - -[[package]] -name = "ghash" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1583cc1656d7839fd3732b80cf4f38850336cdb9b8ded1cd399ca62958de3c99" -dependencies = [ - "opaque-debug", - "polyval 0.5.3", + "wasi", ] [[package]] @@ -3317,7 +3226,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d930750de5717d2dd0b8c0d42c076c0e884c81a73e6cab859bbd2339c71e3e40" dependencies = [ "opaque-debug", - "polyval 0.6.1", + "polyval", ] [[package]] @@ -3356,11 +3265,11 @@ checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] name = "git2" -version = "0.15.0" +version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2994bee4a3a6a51eb90c218523be382fd7ea09b16380b9312e9dbe955ff7c7d1" +checksum = "fbf97ba92db08df386e10c8ede66a2a0369bd277090afd8710e19e38de9ec0cd" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.4.1", "libc", "libgit2-sys", "log", @@ -3416,7 +3325,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" dependencies = [ "ff", - "rand_core 0.6.4", + "rand_core", "subtle", ] @@ -3521,7 +3430,7 @@ dependencies = [ "http", "httpdate", "mime", - "sha1", + "sha1 0.10.6", ] [[package]] @@ -3578,6 +3487,12 @@ version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ebdb29d2ea9ed0083cd8cece49bbd968021bd99b0849edb4a9a7ee0fdf6a4e0" +[[package]] +name = "hex-literal" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46" + [[package]] name = "hex_fmt" version = "0.3.0" @@ -4102,6 +4017,7 @@ dependencies = [ "tari_engine_types", "tari_indexer", "tari_indexer_client", + "tari_key_manager", "tari_p2p", "tari_shutdown", "tari_template_builtin", @@ -4114,7 +4030,7 @@ dependencies = [ "tari_wallet_daemon_client", "time", "tokio", - "tonic 0.6.2", + "tonic 0.8.3", ] [[package]] @@ -4356,7 +4272,7 @@ dependencies = [ "regex-syntax 0.6.29", "string_cache", "term", - "tiny-keccak", + "tiny-keccak 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "unicode-xid", ] @@ -4398,9 +4314,9 @@ checksum = "302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4" [[package]] name = "libgit2-sys" -version = "0.14.2+1.5.1" +version = "0.16.1+1.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f3d95f6b51075fe9810a7ae22c7095f12b98005ab364d8544797a825ce946a4" +checksum = "f2a2bb3680b094add03bb3732ec520ece34da31a8cd2d633d1389d0f0fb60d0c" dependencies = [ "cc", "libc", @@ -4453,7 +4369,7 @@ dependencies = [ "either", "futures 0.3.29", "futures-timer", - "getrandom 0.2.11", + "getrandom", "instant", "libp2p-allow-block-list", "libp2p-autonat", @@ -4606,7 +4522,7 @@ dependencies = [ "fnv", "futures 0.3.29", "futures-ticker", - "getrandom 0.2.11", + "getrandom", "hex_fmt", "instant", "libp2p-core", @@ -4649,7 +4565,7 @@ dependencies = [ [[package]] name = "libp2p-identity" version = "0.2.8" -source = "git+https://github.com/tari-project/rust-libp2p.git?rev=5459d4d7cc79437d091fe3e390e8609a5ac06ea3#5459d4d7cc79437d091fe3e390e8609a5ac06ea3" +source = "git+https://github.com/tari-project/rust-libp2p.git?rev=9b73988f611a877595de8a4a205aa86fb78cd626#9b73988f611a877595de8a4a205aa86fb78cd626" dependencies = [ "bs58 0.5.0", "ed25519-dalek", @@ -4726,7 +4642,7 @@ checksum = "8ecd0545ce077f6ea5434bcb76e8d0fe942693b4380aaad0d34a358c2bd05793" dependencies = [ "asynchronous-codec 0.7.0", "bytes 1.5.0", - "curve25519-dalek 4.1.1", + "curve25519-dalek", "futures 0.3.29", "libp2p-core", "libp2p-identity", @@ -4981,6 +4897,43 @@ dependencies = [ "vcpkg", ] +[[package]] +name = "libtor" +version = "46.9.0+0.4.6.x" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18ca40c5090fd84877853f509dce8f906922e6c6fb0be12f4b61f6116710d457" +dependencies = [ + "libtor-derive", + "libtor-sys", + "log", + "rand", + "sha1 0.6.0", +] + +[[package]] +name = "libtor-derive" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "177781b25e83853831c5af66320ceaf5e456e1b6d533426fcd9c7544b5543043" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "libtor-sys" +version = "46.9.1+0.4.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52bf218e9764d77c16b77b9a26f219c5302bf7be010fd82aba63b019dea41fea" +dependencies = [ + "autotools", + "cc", + "fs_extra", + "libz-sys", + "openssl-sys", +] + [[package]] name = "libz-sys" version = "1.1.12" @@ -5300,7 +5253,7 @@ checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" dependencies = [ "byteorder", "keccak", - "rand_core 0.6.4", + "rand_core", "zeroize", ] @@ -5396,17 +5349,18 @@ dependencies = [ [[package]] name = "minotari_app_grpc" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "argon2", "base64 0.13.1", "borsh", "chrono", "log", - "prost 0.9.0", - "prost-types 0.9.0", + "prost 0.11.9", + "prost-types 0.11.9", "rand", + "rcgen", "subtle", "tari_common_types", "tari_comms", @@ -5415,17 +5369,19 @@ dependencies = [ "tari_script", "tari_utilities", "thiserror", - "tonic 0.6.2", + "tokio", + "tonic 0.8.3", "tonic-build", "zeroize", ] [[package]] name = "minotari_app_utilities" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "clap 3.2.25", + "dialoguer", "futures 0.3.29", "json5", "log", @@ -5438,14 +5394,14 @@ dependencies = [ "tari_utilities", "thiserror", "tokio", + "tonic 0.8.3", ] [[package]] name = "minotari_console_wallet" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ - "bitflags 2.4.1", "blake2", "chrono", "clap 3.2.25", @@ -5478,14 +5434,16 @@ dependencies = [ "tari_core", "tari_crypto", "tari_features", + "tari_hash_domains", "tari_key_manager", + "tari_libtor", "tari_p2p", "tari_script", "tari_shutdown", "tari_utilities", "thiserror", "tokio", - "tonic 0.6.2", + "tonic 0.8.3", "tui", "unicode-segmentation", "unicode-width", @@ -5496,8 +5454,8 @@ dependencies = [ [[package]] name = "minotari_node" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "anyhow", "async-trait", @@ -5529,7 +5487,8 @@ dependencies = [ "tari_core", "tari_crypto", "tari_features", - "tari_metrics 0.1.0 (git+https://github.com/tari-project/tari.git?branch=feature-dan2)", + "tari_libtor", + "tari_metrics", "tari_p2p", "tari_service_framework", "tari_shutdown", @@ -5537,28 +5496,28 @@ dependencies = [ "tari_utilities", "thiserror", "tokio", - "tonic 0.6.2", + "tonic 0.8.3", ] [[package]] name = "minotari_node_grpc_client" version = "0.1.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "minotari_app_grpc", ] [[package]] name = "minotari_wallet" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "argon2", "async-trait", "bincode 1.3.3", "blake2", "borsh", - "chacha20poly1305 0.10.1", + "chacha20poly1305", "chrono", "derivative", "diesel", @@ -5569,7 +5528,7 @@ dependencies = [ "itertools 0.10.5", "libsqlite3-sys", "log", - "prost 0.9.0", + "prost 0.11.9", "rand", "serde", "serde_json", @@ -5600,12 +5559,12 @@ dependencies = [ [[package]] name = "minotari_wallet_grpc_client" version = "0.1.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "minotari_app_grpc", "tari_common_types", "thiserror", - "tonic 0.6.2", + "tonic 0.8.3", ] [[package]] @@ -5629,7 +5588,7 @@ checksum = "8f3d0b296e374a4e6f3c7b0a1f5a51d748a0d34c85e7dc48fc3fa9a87657fe09" dependencies = [ "libc", "log", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", "windows-sys 0.48.0", ] @@ -5644,19 +5603,19 @@ dependencies = [ [[package]] name = "monero" -version = "0.18.2" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a8965a7510c5d9389e2086e406c292d6bbecac099eef195be55a2d2043448b9" +checksum = "1b205707fd34b01a547f2fe77e687b40fed05966fb82e955b86ac55cd8ee31b5" dependencies = [ - "base58-monero 1.0.0", - "curve25519-dalek 3.2.0", + "base58-monero 2.0.0", + "curve25519-dalek", "fixed-hash", "hex", - "hex-literal", - "sealed 0.4.0", + "hex-literal 0.4.1", + "sealed 0.5.0", "serde", "thiserror", - "tiny-keccak", + "tiny-keccak 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -5704,7 +5663,7 @@ dependencies = [ [[package]] name = "multiaddr" version = "0.18.1" -source = "git+https://github.com/tari-project/rust-libp2p.git?rev=5459d4d7cc79437d091fe3e390e8609a5ac06ea3#5459d4d7cc79437d091fe3e390e8609a5ac06ea3" +source = "git+https://github.com/tari-project/rust-libp2p.git?rev=9b73988f611a877595de8a4a205aa86fb78cd626#9b73988f611a877595de8a4a205aa86fb78cd626" dependencies = [ "arrayref", "byteorder", @@ -6154,6 +6113,15 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +[[package]] +name = "openssl-src" +version = "300.2.1+3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fe476c29791a5ca0d1273c697e96085bbabbbea2ef7afd5617e78a4b40332d3" +dependencies = [ + "cc", +] + [[package]] name = "openssl-sys" version = "0.9.97" @@ -6162,6 +6130,7 @@ checksum = "c3eaad34cdd97d81de97964fc7f29e2d104f483840d906ef56daa1912338460b" dependencies = [ "cc", "libc", + "openssl-src", "pkg-config", "vcpkg", ] @@ -6302,7 +6271,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7676374caaee8a325c9e7a2ae557f216c5563a171d6997b0ef8a65af35147700" dependencies = [ "base64ct", - "rand_core 0.6.4", + "rand_core", "subtle", ] @@ -6458,7 +6427,7 @@ version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "27e1f8e085bfa9b85763fe3ddaacbe90a09cd847b3833129153a6cb063bbe132" dependencies = [ - "aes 0.8.3", + "aes", "base64 0.21.5", "bitfield", "block-padding", @@ -6472,7 +6441,7 @@ dependencies = [ "chrono", "cipher 0.4.4", "crc24", - "curve25519-dalek 4.1.1", + "curve25519-dalek", "derive_builder", "des", "digest 0.10.7", @@ -6493,7 +6462,7 @@ dependencies = [ "rand", "ripemd", "rsa", - "sha1", + "sha1 0.10.6", "sha2", "sha3", "signature", @@ -6639,17 +6608,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "poly1305" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "048aeb476be11a4b6ca432ca569e375810de9294ae78f4774e78ea98a9246ede" -dependencies = [ - "cpufeatures", - "opaque-debug", - "universal-hash 0.4.0", -] - [[package]] name = "poly1305" version = "0.8.0" @@ -6658,19 +6616,7 @@ checksum = "8159bd90725d2df49889a078b54f4f79e87f1f8a8444194cdca81d38f5393abf" dependencies = [ "cpufeatures", "opaque-debug", - "universal-hash 0.5.1", -] - -[[package]] -name = "polyval" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1" -dependencies = [ - "cfg-if", - "cpufeatures", - "opaque-debug", - "universal-hash 0.4.0", + "universal-hash", ] [[package]] @@ -6682,7 +6628,7 @@ dependencies = [ "cfg-if", "cpufeatures", "opaque-debug", - "universal-hash 0.5.1", + "universal-hash", ] [[package]] @@ -6709,6 +6655,16 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" +[[package]] +name = "prettyplease" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c8646e95016a7a6c4adea95bafa8a16baab64b583356217f2c85db4a39d9a86" +dependencies = [ + "proc-macro2", + "syn 1.0.109", +] + [[package]] name = "prettyplease" version = "0.2.15" @@ -6740,15 +6696,6 @@ dependencies = [ "uint", ] -[[package]] -name = "proc-macro-crate" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" -dependencies = [ - "toml 0.5.11", -] - [[package]] name = "proc-macro-crate" version = "1.1.3" @@ -6768,6 +6715,15 @@ dependencies = [ "toml_edit 0.20.7", ] +[[package]] +name = "proc-macro-crate" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284" +dependencies = [ + "toml_edit 0.21.0", +] + [[package]] name = "proc-macro-error" version = "1.0.4" @@ -6887,20 +6843,22 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.9.0" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62941722fb675d463659e49c4f3fe1fe792ff24fe5bbaa9c08cd3b98a1c354f5" +checksum = "119533552c9a7ffacc21e099c24a0ac8bb19c2a2a3f363de84cd9b844feab270" dependencies = [ "bytes 1.5.0", - "heck 0.3.3", + "heck 0.4.1", "itertools 0.10.5", "lazy_static", "log", "multimap", "petgraph", - "prost 0.9.0", - "prost-types 0.9.0", + "prettyplease 0.1.25", + "prost 0.11.9", + "prost-types 0.11.9", "regex", + "syn 1.0.109", "tempfile", "which", ] @@ -6918,7 +6876,7 @@ dependencies = [ "multimap", "once_cell", "petgraph", - "prettyplease", + "prettyplease 0.2.15", "prost 0.12.3", "prost-types 0.12.3", "regex", @@ -7197,7 +7155,7 @@ checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", "rand_chacha", - "rand_core 0.6.4", + "rand_core", ] [[package]] @@ -7207,16 +7165,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core 0.6.4", -] - -[[package]] -name = "rand_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" -dependencies = [ - "getrandom 0.1.16", + "rand_core", ] [[package]] @@ -7225,7 +7174,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.11", + "getrandom", ] [[package]] @@ -7234,7 +7183,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d25bf25ec5ae4a3f1b92f929810509a2f53d7dca2f50b794ff57e3face536c8f" dependencies = [ - "rand_core 0.6.4", + "rand_core", ] [[package]] @@ -7305,7 +7254,7 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a18479200779601e498ada4e8c1e1f50e3ee19deb0259c25825a98b5603b2cb4" dependencies = [ - "getrandom 0.2.11", + "getrandom", "libredox", "thiserror", ] @@ -7477,7 +7426,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "688c63d65483050968b2a8937f7995f443e27041a0f7700aa59b0822aedebb74" dependencies = [ "cc", - "getrandom 0.2.11", + "getrandom", "libc", "spin 0.9.8", "untrusted 0.9.0", @@ -7565,7 +7514,7 @@ dependencies = [ "num-traits", "pkcs1", "pkcs8", - "rand_core 0.6.4", + "rand_core", "signature", "spki", "subtle", @@ -7747,6 +7696,18 @@ dependencies = [ "sct", ] +[[package]] +name = "rustls-native-certs" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00" +dependencies = [ + "openssl-probe", + "rustls-pemfile 1.0.4", + "schannel", + "security-framework", +] + [[package]] name = "rustls-pemfile" version = "0.3.0" @@ -7929,6 +7890,18 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "sealed" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4a8caec23b7800fb97971a1c6ae365b6239aaeddfb934d6265f8505e795699d" +dependencies = [ + "heck 0.4.1", + "proc-macro2", + "quote", + "syn 2.0.48", +] + [[package]] name = "sec1" version = "0.7.3" @@ -8159,6 +8132,12 @@ dependencies = [ "digest 0.10.7", ] +[[package]] +name = "sha1" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2579985fda508104f7587689507983eadd6a6e84dd35d6d115361f530916fa0d" + [[package]] name = "sha1" version = "0.10.6" @@ -8200,6 +8179,12 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "shell-words" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde" + [[package]] name = "signal-hook" version = "0.3.17" @@ -8238,7 +8223,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" dependencies = [ "digest 0.10.7", - "rand_core 0.6.4", + "rand_core", ] [[package]] @@ -8357,16 +8342,16 @@ dependencies = [ [[package]] name = "snow" -version = "0.9.3" +version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c9d1425eb528a21de2755c75af4c9b5d57f50a0d4c3b7f1828a4cd03f8ba155" +checksum = "850948bee068e713b8ab860fe1adc4d109676ab4c3b621fd8147f06b261f2f85" dependencies = [ - "aes-gcm 0.9.2", + "aes-gcm", "blake2", - "chacha20poly1305 0.9.1", - "curve25519-dalek 4.1.1", - "rand_core 0.6.4", - "ring 0.16.20", + "chacha20poly1305", + "curve25519-dalek", + "rand_core", + "ring 0.17.7", "rustc_version 0.4.0", "sha2", "subtle", @@ -8614,6 +8599,18 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "syn_derive" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1329189c02ff984e9736652b1631330da25eaa6bc639089ed4915d25446cbe7b" +dependencies = [ + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.48", +] + [[package]] name = "sync_wrapper" version = "0.1.2" @@ -8715,7 +8712,7 @@ dependencies = [ "curve25519-dalek-derive", "fiat-crypto 0.1.20", "platforms", - "rand_core 0.6.4", + "rand_core", "rustc_version 0.4.0", "serde", "subtle", @@ -8736,7 +8733,7 @@ dependencies = [ "tari_dan_common_types", "tari_utilities", "thiserror", - "tonic 0.6.2", + "tonic 0.8.3", ] [[package]] @@ -8764,7 +8761,7 @@ dependencies = [ "lazy_static", "merlin", "rand", - "rand_core 0.6.4", + "rand_core", "serde", "sha3", "tari-curve25519-dalek", @@ -8774,8 +8771,8 @@ dependencies = [ [[package]] name = "tari_common" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "anyhow", "blake2", @@ -8786,7 +8783,7 @@ dependencies = [ "log4rs 1.2.0 (git+https://github.com/tari-project/log4rs.git)", "multiaddr 0.14.0", "path-clean", - "prost-build 0.9.0", + "prost-build 0.11.9", "serde", "serde_json", "serde_yaml 0.9.27", @@ -8801,8 +8798,8 @@ dependencies = [ [[package]] name = "tari_common_sqlite" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "diesel", "diesel_migrations", @@ -8815,16 +8812,16 @@ dependencies = [ [[package]] name = "tari_common_types" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "base64 0.21.5", "blake2", "borsh", - "chacha20poly1305 0.10.1", + "chacha20poly1305", "digest 0.10.7", - "lazy_static", "newtype-ops", + "once_cell", "primitive-types", "rand", "serde", @@ -8837,8 +8834,8 @@ dependencies = [ [[package]] name = "tari_comms" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "anyhow", "async-trait", @@ -8851,7 +8848,6 @@ dependencies = [ "derivative", "digest 0.10.7", "futures 0.3.29", - "lazy_static", "lmdb-zero", "log", "log-mdc", @@ -8859,7 +8855,7 @@ dependencies = [ "nom", "once_cell", "pin-project 1.1.3", - "prost 0.9.0", + "prost 0.11.9", "rand", "serde", "serde_derive", @@ -8867,7 +8863,7 @@ dependencies = [ "snow", "tari_common", "tari_crypto", - "tari_metrics 0.1.0 (git+https://github.com/tari-project/tari.git?branch=feature-dan2)", + "tari_metrics", "tari_shutdown", "tari_storage", "tari_utilities", @@ -8883,14 +8879,14 @@ dependencies = [ [[package]] name = "tari_comms_dht" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "anyhow", "bitflags 2.4.1", "blake2", "chacha20 0.7.3", - "chacha20poly1305 0.10.1", + "chacha20poly1305", "chrono", "diesel", "diesel_migrations", @@ -8899,7 +8895,7 @@ dependencies = [ "log", "log-mdc", "pin-project 0.4.30", - "prost 0.9.0", + "prost 0.11.9", "rand", "serde", "tari_common", @@ -8918,8 +8914,8 @@ dependencies = [ [[package]] name = "tari_comms_rpc_macros" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "proc-macro2", "quote", @@ -8935,6 +8931,7 @@ dependencies = [ "indexmap 2.1.0", "log", "serde", + "tari_common", "tari_common_types", "tari_dan_common_types", "tari_dan_storage", @@ -8948,8 +8945,8 @@ dependencies = [ [[package]] name = "tari_contacts" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "chrono", "diesel", @@ -8958,7 +8955,7 @@ dependencies = [ "log", "num-derive 0.3.3", "num-traits", - "prost 0.9.0", + "prost 0.11.9", "rand", "serde", "serde_json", @@ -8980,8 +8977,8 @@ dependencies = [ [[package]] name = "tari_core" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "async-trait", "bincode 1.3.3", @@ -8989,7 +8986,7 @@ dependencies = [ "blake2", "borsh", "bytes 0.5.6", - "chacha20poly1305 0.10.1", + "chacha20poly1305", "chrono", "decimal-rs", "derivative", @@ -9008,12 +9005,13 @@ dependencies = [ "num-traits", "once_cell", "primitive-types", - "prost 0.9.0", + "prost 0.11.9", "rand", "randomx-rs", "serde", "serde_json", "serde_repr", + "sha2", "sha3", "strum", "strum_macros", @@ -9024,6 +9022,7 @@ dependencies = [ "tari_comms_dht", "tari_comms_rpc_macros", "tari_crypto", + "tari_hash_domains", "tari_key_manager", "tari_mmr", "tari_p2p", @@ -9034,6 +9033,7 @@ dependencies = [ "tari_test_utils", "tari_utilities", "thiserror", + "tiny-keccak 2.0.2 (git+https://github.com/tari-project/tiny-keccak?rev=bcddc65530d8646de7282cd8d18d891dc434b643)", "tokio", "tracing", "zeroize", @@ -9041,9 +9041,9 @@ dependencies = [ [[package]] name = "tari_crypto" -version = "0.19.0" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c74907b0c0237bc545e1da9b3ad6654fff934bdbd291bbe2a0e57e61933d6fc4" +checksum = "63a3ed2c551101eb42b7f9386c207e28d53e6816f7b4c9a0883548922f317b3e" dependencies = [ "blake2", "borsh", @@ -9051,7 +9051,7 @@ dependencies = [ "log", "once_cell", "rand_chacha", - "rand_core 0.6.4", + "rand_core", "serde", "sha3", "snafu", @@ -9127,6 +9127,7 @@ dependencies = [ "tari_core", "tari_crypto", "tari_engine_types", + "tari_hash_domains", "tari_mmr", "ts-rs", ] @@ -9147,6 +9148,7 @@ dependencies = [ "serde", "serde_json", "tari_bor", + "tari_common", "tari_common_types", "tari_crypto", "tari_dan_common_types", @@ -9194,6 +9196,7 @@ dependencies = [ "log", "rand", "serde", + "tari_common", "tari_common_types", "tari_core", "tari_crypto", @@ -9318,7 +9321,7 @@ dependencies = [ "anyhow", "async-trait", "blake2", - "chacha20poly1305 0.10.1", + "chacha20poly1305", "chrono", "digest 0.10.7", "jsonwebtoken", @@ -9379,8 +9382,10 @@ dependencies = [ "serde", "serde_json", "tari_bor", + "tari_common", "tari_common_types", "tari_crypto", + "tari_hash_domains", "tari_template_abi", "tari_template_lib", "tari_utilities", @@ -9396,6 +9401,7 @@ dependencies = [ "async-trait", "log", "tari_base_node_client", + "tari_common", "tari_common_types", "tari_core", "tari_dan_common_types", @@ -9409,8 +9415,16 @@ dependencies = [ [[package]] name = "tari_features" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" + +[[package]] +name = "tari_hash_domains" +version = "0.1.0" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" +dependencies = [ + "tari_crypto", +] [[package]] name = "tari_indexer" @@ -9500,14 +9514,14 @@ dependencies = [ [[package]] name = "tari_key_manager" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "argon2", "async-trait", "blake2", "chacha20 0.7.3", - "chacha20poly1305 0.10.1", + "chacha20poly1305", "chrono", "crc32fast", "derivative", @@ -9531,10 +9545,27 @@ dependencies = [ "zeroize", ] +[[package]] +name = "tari_libtor" +version = "0.24.0" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" +dependencies = [ + "derivative", + "libtor", + "log", + "openssl", + "rand", + "tari_common", + "tari_p2p", + "tari_shutdown", + "tempfile", + "tor-hash-passwd", +] + [[package]] name = "tari_metrics" version = "0.1.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "anyhow", "futures 0.3.29", @@ -9547,20 +9578,10 @@ dependencies = [ "warp", ] -[[package]] -name = "tari_metrics" -version = "0.1.0" -source = "git+https://github.com/tari-project/tari.git#f394fd815e89e56147a59a3640586cbbe0874338" -dependencies = [ - "once_cell", - "prometheus", - "thiserror", -] - [[package]] name = "tari_mmr" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "borsh", "digest 0.10.7", @@ -9590,8 +9611,8 @@ dependencies = [ [[package]] name = "tari_p2p" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "anyhow", "fs2", @@ -9599,7 +9620,7 @@ dependencies = [ "lmdb-zero", "log", "pgp", - "prost 0.9.0", + "prost 0.11.9", "rand", "reqwest", "rustls 0.20.9", @@ -9637,7 +9658,7 @@ dependencies = [ "prost 0.12.3", "prost-build 0.12.3", "proto_builder", - "tari_metrics 0.1.0 (git+https://github.com/tari-project/tari.git)", + "tari_metrics", "tari_shutdown", "thiserror", "tokio", @@ -9663,6 +9684,7 @@ dependencies = [ "async-trait", "futures 0.3.29", "log", + "tari_common", "tari_consensus", "tari_dan_common_types", "tari_dan_p2p", @@ -9687,7 +9709,7 @@ dependencies = [ [[package]] name = "tari_script" version = "0.12.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "blake2", "borsh", @@ -9703,8 +9725,8 @@ dependencies = [ [[package]] name = "tari_service_framework" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "anyhow", "async-trait", @@ -9718,8 +9740,8 @@ dependencies = [ [[package]] name = "tari_shutdown" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "futures 0.3.29", ] @@ -9772,8 +9794,8 @@ dependencies = [ [[package]] name = "tari_storage" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "bincode 1.3.3", "lmdb-zero", @@ -9845,6 +9867,7 @@ dependencies = [ "rand", "serde", "tari_bor", + "tari_common", "tari_common_types", "tari_crypto", "tari_dan_common_types", @@ -9858,8 +9881,8 @@ dependencies = [ [[package]] name = "tari_test_utils" -version = "0.53.0-dan.0" -source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#9a871656e4ce1464d54107a4e3fc52181ed13e02" +version = "1.0.0-dan.5" +source = "git+https://github.com/tari-project/tari.git?branch=feature-dan2#e422a12d86b8f6f4df3dedb961883f8ee58c55d3" dependencies = [ "futures 0.3.29", "rand", @@ -9899,9 +9922,9 @@ dependencies = [ [[package]] name = "tari_utilities" -version = "0.6.1" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c396f014de7fa290ea8decd7238df9f1c175f243480a4ebef9ec61f144b1c95" +checksum = "8c1bb0e5d1d812f2be2d6ad861caad68f75adb5b2e8376264850300deb16ddc7" dependencies = [ "base58-monero 0.3.2", "base64 0.13.1", @@ -9973,7 +9996,7 @@ dependencies = [ "thiserror", "time", "tokio", - "tonic 0.6.2", + "tonic 0.8.3", "tower-http", ] @@ -10226,6 +10249,15 @@ dependencies = [ "crunchy", ] +[[package]] +name = "tiny-keccak" +version = "2.0.2" +source = "git+https://github.com/tari-project/tiny-keccak?rev=bcddc65530d8646de7282cd8d18d891dc434b643#bcddc65530d8646de7282cd8d18d891dc434b643" +dependencies = [ + "borsh", + "crunchy", +] + [[package]] name = "tinyvec" version = "1.6.0" @@ -10411,14 +10443,26 @@ dependencies = [ "winnow", ] +[[package]] +name = "toml_edit" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d34d383cd00a163b4a5b85053df514d45bc330f6de7737edfe0a93311d1eaa03" +dependencies = [ + "indexmap 2.1.0", + "toml_datetime", + "winnow", +] + [[package]] name = "tonic" -version = "0.6.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff08f4649d10a70ffa3522ca559031285d8e421d727ac85c60825761818f5d0a" +checksum = "8f219fad3b929bef19b1f86fbc0358d35daed8f2cac972037ac0dc10bbb8d5fb" dependencies = [ "async-stream", "async-trait", + "axum", "base64 0.13.1", "bytes 1.5.0", "futures-core", @@ -10430,11 +10474,14 @@ dependencies = [ "hyper-timeout", "percent-encoding", "pin-project 1.1.3", - "prost 0.9.0", - "prost-derive 0.9.0", + "prost 0.11.9", + "prost-derive 0.11.9", + "rustls-native-certs", + "rustls-pemfile 1.0.4", "tokio", + "tokio-rustls", "tokio-stream", - "tokio-util 0.6.10", + "tokio-util 0.7.10", "tower", "tower-layer", "tower-service", @@ -10472,16 +10519,30 @@ dependencies = [ [[package]] name = "tonic-build" -version = "0.6.2" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9403f1bafde247186684b230dc6f38b5cd514584e8bec1dd32514be4745fa757" +checksum = "5bf5e9b9c0f7e0a7c027dcfaba7b2c60816c7049171f679d99ee2ff65d0de8c4" dependencies = [ + "prettyplease 0.1.25", "proc-macro2", - "prost-build 0.9.0", + "prost-build 0.11.9", "quote", "syn 1.0.109", ] +[[package]] +name = "tor-hash-passwd" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b83cd43a176c0c19d5db4401283e8f5c296b9c6c7fa29029de15cc445f26e12" +dependencies = [ + "hex", + "hex-literal 0.3.4", + "rand", + "sha1 0.6.0", + "thiserror", +] + [[package]] name = "tower" version = "0.4.13" @@ -10739,7 +10800,7 @@ dependencies = [ "httparse", "log", "rand", - "sha1", + "sha1 0.10.6", "thiserror", "url", "utf-8", @@ -10877,16 +10938,6 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" -[[package]] -name = "universal-hash" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8326b2c654932e3e4f9196e69d08fdf7cfd718e1dc6f66b347e6024a0c961402" -dependencies = [ - "generic-array", - "subtle", -] - [[package]] name = "universal-hash" version = "0.5.1" @@ -10969,7 +11020,7 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" dependencies = [ - "getrandom 0.2.11", + "getrandom", ] [[package]] @@ -10978,7 +11029,7 @@ version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e395fcf16a7a3d8127ec99782007af141946b4795001f876d54fb0d55978560" dependencies = [ - "getrandom 0.2.11", + "getrandom", ] [[package]] @@ -11106,12 +11157,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -11546,8 +11591,8 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32b140b953f986e97828aa33ec6318186b05d862bee689efbc57af04a243e832" dependencies = [ - "aes 0.8.3", - "aes-gcm 0.10.3", + "aes", + "aes-gcm", "async-trait", "bincode 1.3.3", "byteorder", @@ -11560,13 +11605,13 @@ dependencies = [ "p256", "p384", "rand", - "rand_core 0.6.4", + "rand_core", "rcgen", "ring 0.16.20", "rustls 0.21.10", "sec1", "serde", - "sha1", + "sha1 0.10.6", "sha2", "subtle", "thiserror", @@ -11649,17 +11694,17 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c1db1f36c1c81e4b1e531c0b9678ba0c93809e196ce62122d87259bb71c03b9f" dependencies = [ - "aead 0.5.2", - "aes 0.8.3", - "aes-gcm 0.10.3", + "aead", + "aes", + "aes-gcm", "byteorder", "bytes 1.5.0", - "ctr 0.9.2", + "ctr", "hmac", "log", "rtcp", "rtp", - "sha1", + "sha1 0.10.6", "subtle", "thiserror", "tokio", @@ -12049,8 +12094,8 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fb66477291e7e8d2b0ff1bcb900bf29489a9692816d79874bea351e7a8b6de96" dependencies = [ - "curve25519-dalek 4.1.1", - "rand_core 0.6.4", + "curve25519-dalek", + "rand_core", "serde", "zeroize", ] diff --git a/Cargo.toml b/Cargo.toml index 73a16511e..495d61a89 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -103,6 +103,7 @@ tari_wallet_daemon_client = { path = "clients/wallet_daemon_client" } transaction_generator = { path = "utilities/transaction_generator" } # external minotari/tari dependencies +tari_hash_domains = { git = "https://github.com/tari-project/tari.git", branch = "feature-dan2" } minotari_app_grpc = { git = "https://github.com/tari-project/tari.git", branch = "feature-dan2" } minotari_app_utilities = { git = "https://github.com/tari-project/tari.git", branch = "feature-dan2" } minotari_console_wallet = { git = "https://github.com/tari-project/tari.git", branch = "feature-dan2" } @@ -115,14 +116,14 @@ tari_common_types = { git = "https://github.com/tari-project/tari.git", branch = # avoid including default features so each crate can choose which ones to import tari_core = { git = "https://github.com/tari-project/tari.git", branch = "feature-dan2", default-features = false } -tari_crypto = "0.19" +tari_crypto = "0.20.0" tari_key_manager = { git = "https://github.com/tari-project/tari.git", branch = "feature-dan2" } -tari_metrics = { git = "https://github.com/tari-project/tari.git" } +tari_metrics = { git = "https://github.com/tari-project/tari.git", branch = "feature-dan2" } tari_mmr = { git = "https://github.com/tari-project/tari.git", branch = "feature-dan2" } tari_p2p = { git = "https://github.com/tari-project/tari.git", branch = "feature-dan2" } tari_shutdown = { git = "https://github.com/tari-project/tari.git", branch = "feature-dan2" } tari_storage = { git = "https://github.com/tari-project/tari.git", branch = "feature-dan2" } -tari_utilities = "0.6" +tari_utilities = "0.7.0" # third-party dependencies anyhow = "1.0.75" @@ -136,7 +137,7 @@ bigdecimal = "0.4.1" bincode = "2.0.0-rc.3" bitflags = "2.4" blake2 = "0.10.6" -borsh = "0.10" +borsh = "1.3" bytes = "1.5" cacache = "12.0.0" cargo_metadata = "0.15.3" @@ -174,7 +175,7 @@ itertools = "0.11.0" lazy_static = "1.4.0" libp2p = "0.53.1" # Adds support for Schnorr-Ristretto (sr25519) -libp2p-identity = { git = "https://github.com/tari-project/rust-libp2p.git", rev = "5459d4d7cc79437d091fe3e390e8609a5ac06ea3" } +libp2p-identity = "0.2.8" libsqlite3-sys = "0.25" liquid = "0.26.4" lmdb-zero = "0.4.4" @@ -209,7 +210,7 @@ time = "0.3.15" tokio = { version = "1.34", default-features = false } tokio-stream = "0.1.7" tokio-util = "0.7.10" -tonic = "0.6.2" +tonic = "0.8.3" tower = "0.4" tower-http = { version = "0.3.5", default-features = false } tower-layer = "0.3" @@ -236,14 +237,13 @@ overflow-checks = true # Temporarily lock pgp to commit (master branch at time of writing) because the currently released crate locks zeroize to =1.3 liblmdb-sys = { git = "https://github.com/tari-project/lmdb-rs", tag = "0.7.6-tari.1" } # Use Tari's libp2p fork that adds support for Schnorr-Ristretto -multiaddr = { git = "https://github.com/tari-project/rust-libp2p.git", rev = "5459d4d7cc79437d091fe3e390e8609a5ac06ea3" } +multiaddr = { git = "https://github.com/tari-project/rust-libp2p.git", rev = "9b73988f611a877595de8a4a205aa86fb78cd626" } #libp2p = { git = "https://github.com/tari-project/rust-libp2p.git", rev = "ae1c06a9615a0ac020e459904ec984a6ab253678" } -libp2p-identity = { git = "https://github.com/tari-project/rust-libp2p.git", rev = "5459d4d7cc79437d091fe3e390e8609a5ac06ea3" } +libp2p-identity = { git = "https://github.com/tari-project/rust-libp2p.git", rev = "9b73988f611a877595de8a4a205aa86fb78cd626" } # Make a copy of this code, uncomment and replace account and my-branch with the name of your fork and the branch you want to temporarily use #[patch."https://github.com/tari-project/tari.git"] #minotari_app_grpc = { git = "https://github.com/account/tari.git", branch = "my-branch" } -#minotari_app_grpc = { git = "https://github.com/account/tari.git", branch = "my-branch" } #minotari_wallet_grpc_client= { git = "https://github.com/account/tari.git", branch = "my-branch" } #minotari_node_grpc_client = { git = "https://github.com/account/tari.git", branch = "my-branch" } #tari_common = { git = "https://github.com/account/tari.git", branch = "my-branch" } @@ -256,9 +256,12 @@ libp2p-identity = { git = "https://github.com/tari-project/rust-libp2p.git", rev #tari_p2p = { git = "https://github.com/account/tari.git", branch = "my-branch" } #tari_shutdown = { git = "https://github.com/account/tari.git", branch = "my-branch" } #tari_storage = { git = "https://github.com/account/tari.git", branch = "my-branch" } -#minotari_wallet_grpc_client = { git = "https://github.com/account/tari.git", branch = "my-branch" } #tari_script = { git = "https://github.com/account/tari.git", branch = "my-branch" } #minotari_wallet = { git = "https://github.com/account/tari.git", branch = "my-branch" } #minotari_console_wallet = { git = "https://github.com/account/tari.git", branch = "my-branch" } #tari_service_framework = { git = "https://github.com/account/tari.git", branch = "my-branch" } #tari_comms_dht = { git = "https://github.com/account/tari.git", branch = "my-branch" } +#minotari_app_utilities = { git = "https://github.com/account/tari.git", branch = "my-branch" } +#minotari_node = { git = "https://github.com/account/tari.git", branch = "my-branch" } +#tari_metrics = { git = "https://github.com/account/tari.git", branch = "my-branch" } + diff --git a/applications/tari_dan_app_utilities/src/base_layer_scanner.rs b/applications/tari_dan_app_utilities/src/base_layer_scanner.rs index 988fbd749..04e2aac03 100644 --- a/applications/tari_dan_app_utilities/src/base_layer_scanner.rs +++ b/applications/tari_dan_app_utilities/src/base_layer_scanner.rs @@ -29,6 +29,7 @@ use tari_base_node_client::{ BaseNodeClient, BaseNodeClientError, }; +use tari_common::configuration::Network; use tari_common_types::types::{Commitment, FixedHash, FixedHashSizeError}; use tari_core::transactions::transaction_components::{ CodeTemplateRegistration, @@ -63,6 +64,7 @@ use crate::{ const LOG_TARGET: &str = "tari::dan::base_layer_scanner"; pub fn spawn( + network: Network, global_db: GlobalDb>, base_node_client: GrpcBaseNodeClient, epoch_manager: EpochManagerHandle, @@ -75,6 +77,7 @@ pub fn spawn( ) -> JoinHandle> { task::spawn(async move { let base_layer_scanner = BaseLayerScanner::new( + network, global_db, base_node_client, epoch_manager, @@ -92,6 +95,7 @@ pub fn spawn( } pub struct BaseLayerScanner { + network: Network, global_db: GlobalDb>, last_scanned_height: u64, last_scanned_tip: Option, @@ -110,6 +114,7 @@ pub struct BaseLayerScanner { impl BaseLayerScanner { pub fn new( + network: Network, global_db: GlobalDb>, base_node_client: GrpcBaseNodeClient, epoch_manager: EpochManagerHandle, @@ -121,6 +126,7 @@ impl BaseLayerScanner { base_layer_scanning_interval: Duration, ) -> Self { Self { + network, global_db, last_scanned_tip: None, last_scanned_height: 0, @@ -374,7 +380,7 @@ impl BaseLayerScanner { }); self.state_store .with_write_tx(|tx| { - let genesis = Block::genesis(); + let genesis = Block::genesis(self.network); // TODO: This should be proposed in a block... SubstateRecord { diff --git a/applications/tari_dan_app_utilities/src/transaction_executor.rs b/applications/tari_dan_app_utilities/src/transaction_executor.rs index 0ef3dd0a9..e1d256a0f 100644 --- a/applications/tari_dan_app_utilities/src/transaction_executor.rs +++ b/applications/tari_dan_app_utilities/src/transaction_executor.rs @@ -4,6 +4,7 @@ use std::{sync::Arc, time::Instant}; use log::*; +use tari_common::configuration::Network; use tari_common_types::types::PublicKey; use tari_crypto::tari_utilities::ByteArray; use tari_dan_common_types::{services::template_provider::TemplateProvider, SubstateAddress}; @@ -36,13 +37,15 @@ pub trait TransactionExecutor { pub struct TariDanTransactionProcessor { template_provider: Arc, fee_table: FeeTable, + network: Network, } impl TariDanTransactionProcessor { - pub fn new(template_provider: TTemplateProvider, fee_table: FeeTable) -> Self { + pub fn new(network: Network, template_provider: TTemplateProvider, fee_table: FeeTable) -> Self { Self { template_provider: Arc::new(template_provider), fee_table, + network, } } } @@ -74,6 +77,7 @@ where TTemplateProvider: TemplateProvider