diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 1052092..fe6fe69 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -57,7 +57,7 @@ env: # feature 'vec_deque_pop_if'`, after the job has already built the rest of # the graph. 1.98 is the release this graph is built with on the dev machine # and in the Android workflows. `--no-default-features` still builds on 1.91 - # (Arti 0.46's floor); the default build does not, so the image follows the + # (Arti 0.49's floor); the default build does not, so the image follows the # default build. RUST_IMAGE: rust:1.98-bookworm CARGO_REGISTRY_VOLUME: onionwire-cargo-registry diff --git a/Cargo.lock b/Cargo.lock index 1aefb4a..443af58 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -175,9 +175,9 @@ checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" [[package]] name = "arti-client" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aafcbc506657d886b27ef2d8e06a99edd9014b28130c798a3013935b46983097" +checksum = "47b3624d7bee91f821b04fe5412f561671e5500677781d3f070a2fa101a128b0" dependencies = [ "async-trait", "cfg-if", @@ -193,10 +193,9 @@ dependencies = [ "libc", "once_cell", "postage", - "rand 0.10.2", + "rand 0.10.4", "safelog", "serde", - "tempfile", "thiserror 2.0.20", "time", "tor-async-utils", @@ -257,7 +256,7 @@ dependencies = [ "proc-macro2", "quote", "syn 2.0.119", - "synstructure", + "synstructure 0.13.2", ] [[package]] @@ -271,17 +270,11 @@ dependencies = [ "syn 2.0.119", ] -[[package]] -name = "assert_matches" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" - [[package]] name = "async-compression" -version = "0.4.46" +version = "0.4.54" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f10dafd0c8d2e51ae9a748805777613ed0bbe17bf586b76c8311f45c020a32f" +checksum = "0c31224bd2c09447484a1143f2fc1d871eb405789859c8e5470a3e7f95f40a18" dependencies = [ "compression-codecs", "compression-core", @@ -643,9 +636,9 @@ checksum = "0d74937895e761d5984206f82ca8ff7725d0fd8021921011921894b41ab1b9f7" [[package]] name = "caret" -version = "0.10.1" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23a6f83e57018d15e7615a6f8e5e2c6b6b0226e24a1c562cd705f855a2bc751a" +checksum = "d3f1a1c7fa296eb2367469e6226783ed07cb778d75d13f7b6ee3f1de593ba7f4" [[package]] name = "castaway" @@ -670,9 +663,9 @@ dependencies = [ [[package]] name = "cfg-if" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" [[package]] name = "cfg_aliases" @@ -807,9 +800,9 @@ checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a" [[package]] name = "coarsetime" -version = "0.1.37" +version = "0.1.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e58eb270476aa4fc7843849f8a35063e8743b4dbcdf6dd0f8ea0886980c204c2" +checksum = "eae63702c5627c75addbfb1ea9d1b3842205a6ffd43e4cce884a2a9eb1828fd7" dependencies = [ "libc", "wasix", @@ -838,9 +831,9 @@ checksum = "ea0095f6103c2a8b44acd6fd15960c801dafebf02e21940360833e0673f48ba7" [[package]] name = "compression-codecs" -version = "0.4.41" +version = "0.4.49" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58a6d0db8759036a783bc7c3f7a07f8cef3bf9470eb1db3bc86e8bcd1c5d0fe8" +checksum = "f938fc0d88fbe2c8d6f0e1ba96ba1165d89ff698e98468cd019d92cff2ecd367" dependencies = [ "compression-core", "flate2", @@ -851,9 +844,9 @@ dependencies = [ [[package]] name = "compression-core" -version = "0.4.33" +version = "0.4.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e8ccc4ea9f6acc32d102c0f6d471d11d913ad15f20c04de743374861fa1d414" +checksum = "2ebdda89edc534bf8d5dd2857562633b6495557e5846552ade994b99ed13c36a" [[package]] name = "const-oid" @@ -1236,7 +1229,7 @@ dependencies = [ "cuprate-cryptonight", "cuprate-helper", "cuprate-types", - "curve25519-dalek", + "curve25519-dalek 4.1.3", "hex", "hex-literal 1.1.0", "indexmap 2.14.2", @@ -1338,8 +1331,8 @@ source = "git+https://github.com/Cuprate/cuprate?rev=4f8fcd1bf468f566fcd89c460d5 dependencies = [ "chrono", "cuprate-constants", - "curve25519-dalek", - "dirs", + "curve25519-dalek 4.1.3", + "dirs 6.0.0", "futures", "libc", "monero-oxide", @@ -1603,7 +1596,7 @@ dependencies = [ "thiserror 2.0.20", "tokio", "tokio-util", - "toml 1.1.5+spec-1.1.0", + "toml 1.2.3+spec-1.1.0", "toml_edit 0.25.13+spec-1.1.0", "tower", "tower-http", @@ -1622,7 +1615,24 @@ dependencies = [ "cpufeatures 0.2.17", "curve25519-dalek-derive", "digest 0.10.7", - "fiat-crypto", + "fiat-crypto 0.2.9", + "rustc_version", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek" +version = "5.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94c1aa5a9b7626ed65ac0cf5ea9d4f1547af89017fbac20bd4de40022fff516f" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.1", + "curve25519-dalek-derive", + "digest 0.11.3", + "fiat-crypto 0.3.0", + "rand_core 0.10.1", "rustc_version", "subtle", "zeroize", @@ -1839,9 +1849,9 @@ dependencies = [ [[package]] name = "derive-deftly" -version = "1.11.5" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98e02cd118058400797c74550dca132b57cf2e6af0e9ea0672a83eb186fd655e" +checksum = "724949bdda5310709ca2f97bf69c2b01e3362f44fef1fb47913445db4c1debb5" dependencies = [ "derive-deftly-macros", "heck", @@ -1849,9 +1859,9 @@ dependencies = [ [[package]] name = "derive-deftly-macros" -version = "1.11.5" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba91f619216e76a5eb2515783f7ec2e271938b51aadac592f4930517f4626863" +checksum = "17933e749f2502cfcd1c27519292fbbea22e8fc64ce680e863f855e8cd8cce23" dependencies = [ "heck", "indexmap 2.14.2", @@ -1938,8 +1948,10 @@ version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" dependencies = [ + "block-buffer 0.12.1", "const-oid 0.10.2", "crypto-common 0.2.2", + "ctutils", ] [[package]] @@ -1960,6 +1972,15 @@ dependencies = [ "dirs-sys", ] +[[package]] +name = "dirs" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d57d423b3c82e89b9a24ca3091fee61f456a26edbd28d26c65906f4bc1dcd8f" +dependencies = [ + "dirs-sys", +] + [[package]] name = "dirs-sys" version = "0.5.0" @@ -2014,7 +2035,7 @@ dependencies = [ "digest 0.10.7", "elliptic-curve", "rfc6979", - "signature", + "signature 2.2.0", "spki 0.7.3", ] @@ -2025,7 +2046,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" dependencies = [ "pkcs8 0.10.2", - "signature", + "signature 2.2.0", +] + +[[package]] +name = "ed25519" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29fcf32e6c73d1079f83ab4d782de2d81620346a5f38c6237a86a22f8368980a" +dependencies = [ + "pkcs8 0.11.0", + "signature 3.0.0", ] [[package]] @@ -2034,12 +2065,29 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9" dependencies = [ - "curve25519-dalek", - "ed25519", - "merlin", + "curve25519-dalek 4.1.3", + "ed25519 2.2.3", "rand_core 0.6.4", "serde", - "sha2", + "sha2 0.10.9", + "subtle", + "zeroize", +] + +[[package]] +name = "ed25519-dalek" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ebaa1a2bf1290ab3bfe5a7b771d050ebffab2711c19a81691c683a5144a25de" +dependencies = [ + "curve25519-dalek 5.1.0", + "ed25519 3.0.0", + "keccak 0.2.2", + "rand_core 0.10.1", + "serde", + "sha2 0.11.3", + "signature 3.0.0", + "strobe-rs", "subtle", "zeroize", ] @@ -2198,6 +2246,12 @@ version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" +[[package]] +name = "fiat-crypto" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64cd1e32ddd350061ae6edb1b082d7c54915b5c672c389143b9a63403a109f24" + [[package]] name = "figment" version = "0.10.19" @@ -2314,12 +2368,12 @@ dependencies = [ [[package]] name = "fs-mistrust" -version = "0.15.1" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b2c81a5a0e7d67644309a15694eb7f414a4d6556c64c1ece1e5969aa609c8a9" +checksum = "1628799db8c034e020e48ee393c271f423aa749fde1c3195bd3bbc8bb5cfcbe8" dependencies = [ "derive_builder_fork_arti", - "dirs", + "dirs 7.0.0", "extend", "libc", "pwd-grp", @@ -2331,9 +2385,9 @@ dependencies = [ [[package]] name = "fslock-guard" -version = "0.8.2" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d10ce5036d49f8add4a11d08bc1b1afb0e3cefdd88778ab87fb4202d47b765e1" +checksum = "ba455a614874a0b1814cf3e30f8a6d4c8858e2bc38569bd293e3ff8cbad49032" dependencies = [ "libc", "thiserror 2.0.20", @@ -2641,7 +2695,16 @@ version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" dependencies = [ - "hmac", + "hmac 0.12.1", +] + +[[package]] +name = "hkdf" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4aaa26c720c68b866f2c96ef5c1264b3e6f473fe5d4ce61cd44bbe913e553018" +dependencies = [ + "hmac 0.13.0", ] [[package]] @@ -2653,6 +2716,15 @@ dependencies = [ "digest 0.10.7", ] +[[package]] +name = "hmac" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6303bc9732ae41b04cb554b844a762b4115a61bfaa81e3e83050991eeb56863f" +dependencies = [ + "digest 0.11.3", +] + [[package]] name = "hostname-validator" version = "1.1.1" @@ -3005,9 +3077,9 @@ dependencies = [ [[package]] name = "inventory" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4f0c30c76f2f4ccee3fe55a2435f691ca00c0e4bd87abe4f4a851b1d4dac39b" +checksum = "6928282826c822ad91bf1c9a1cb90a30ba1c26770749929b4656cd6be829cd7c" dependencies = [ "rustversion", ] @@ -3069,9 +3141,25 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "668b7183bd07af9a4885f5c35b0cc5c83c4607a913c16b7e17291832910d2dcc" dependencies = [ "defmt", - "jiff-core", - "jiff-static", - "jiff-tzdb-platform", + "jiff-core 0.1.0", + "jiff-static 0.2.35", + "jiff-tzdb-platform 0.1.3", + "log", + "portable-atomic", + "portable-atomic-util", + "serde_core", + "windows-link", +] + +[[package]] +name = "jiff" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "379ed44bd4e16d3926160e2b3a78b79ca0952ef5c037f124f554842ba272ef92" +dependencies = [ + "jiff-core 1.1.0", + "jiff-static 1.1.0", + "jiff-tzdb-platform 1.0.0", "log", "portable-atomic", "portable-atomic-util", @@ -3088,31 +3176,67 @@ dependencies = [ "defmt", ] +[[package]] +name = "jiff-core" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0df46fc314b4f458aee614afcd8676ed6cb3637413aa359d47d2646cbc038b79" +dependencies = [ + "log", +] + [[package]] name = "jiff-static" version = "0.2.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3a69dcb3a21cfb32ce1cd056169337ca284af0766dd766e7878819b251a49204" dependencies = [ - "jiff-core", + "jiff-core 0.1.0", "proc-macro2", "quote", "syn 2.0.119", ] +[[package]] +name = "jiff-static" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b729c549d3efb5855b3c80b0ee8ee1850d56330a127382fe2760965741c1f3" +dependencies = [ + "jiff-core 1.1.0", + "proc-macro2", + "quote", + "syn 3.0.5", +] + [[package]] name = "jiff-tzdb" version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "142bd39932ad231f10513df9ab62661fead8719872150b7ad02a2df79f4e141e" +[[package]] +name = "jiff-tzdb" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12e71a1b68a875a44a33bb7a1dd84392cb77145a3367a552a3cfe6a4f5cf3afc" + [[package]] name = "jiff-tzdb-platform" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "875a5a69ac2bab1a891711cf5eccbec1ce0341ea805560dcd90b7a2e925132e8" dependencies = [ - "jiff-tzdb", + "jiff-tzdb 0.1.8", +] + +[[package]] +name = "jiff-tzdb-platform" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc65b284afcfa8f6cf189c7274c805505314a7ab975c60e1f548bff56525420e" +dependencies = [ + "jiff-tzdb 1.0.0", ] [[package]] @@ -3138,12 +3262,13 @@ dependencies = [ [[package]] name = "k12" -version = "0.3.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4dc5fdb62af2f520116927304f15d25b3c2667b4817b90efdc045194c912c54" +checksum = "38a8cc72399dffa4a445bc5f5a84d4af4d441c76604231bc52e9c529c1d47693" dependencies = [ - "digest 0.10.7", - "sha3 0.10.9", + "digest 0.11.3", + "keccak 0.2.2", + "sponge-cursor", ] [[package]] @@ -3174,6 +3299,7 @@ checksum = "d8f198d1db720e4940b5a493201d199d9f24f568f8f746bd13706243a2f71598" dependencies = [ "cfg-if", "cpufeatures 0.3.1", + "hybrid-array", ] [[package]] @@ -3398,23 +3524,21 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" [[package]] name = "memmap2" -version = "0.9.11" +version = "0.9.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1219ed1b7f229ee7104d281dd01d6802fe28bb6e95d292942c4daacdeb798c0" +checksum = "6b0ca1155a9ecc25aa12e8313a119f32edf0255fea2f44839c4ac0a12b2ac157" dependencies = [ "libc", ] [[package]] -name = "merlin" -version = "3.0.0" +name = "metrics" +version = "0.24.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" +checksum = "89550ee9f79e88fef3119de263694973a8adb26c21d75322164fb8c493039fe2" dependencies = [ - "byteorder", - "keccak 0.1.6", - "rand_core 0.6.4", - "zeroize", + "portable-atomic", + "rapidhash", ] [[package]] @@ -3506,7 +3630,7 @@ name = "monero-borromean" version = "0.1.0" source = "git+https://github.com/monero-oxide/monero-oxide.git?rev=946ec5f#946ec5f00ff071b129758ee8cba5528539fccfe4" dependencies = [ - "curve25519-dalek", + "curve25519-dalek 4.1.3", "monero-ed25519", "monero-io", "std-shims", @@ -3518,7 +3642,7 @@ name = "monero-bulletproofs" version = "0.1.0" source = "git+https://github.com/monero-oxide/monero-oxide.git?rev=946ec5f#946ec5f00ff071b129758ee8cba5528539fccfe4" dependencies = [ - "curve25519-dalek", + "curve25519-dalek 4.1.3", "monero-bulletproofs-generators", "monero-ed25519", "monero-io", @@ -3534,7 +3658,7 @@ name = "monero-bulletproofs-generators" version = "0.1.0" source = "git+https://github.com/monero-oxide/monero-oxide.git?rev=946ec5f#946ec5f00ff071b129758ee8cba5528539fccfe4" dependencies = [ - "curve25519-dalek", + "curve25519-dalek 4.1.3", "monero-ed25519", "monero-io", "monero-primitives", @@ -3546,7 +3670,7 @@ name = "monero-clsag" version = "0.1.0" source = "git+https://github.com/monero-oxide/monero-oxide.git?rev=946ec5f#946ec5f00ff071b129758ee8cba5528539fccfe4" dependencies = [ - "curve25519-dalek", + "curve25519-dalek 4.1.3", "group", "monero-ed25519", "monero-io", @@ -3564,7 +3688,7 @@ version = "0.1.0" source = "git+https://github.com/monero-oxide/monero-oxide.git?rev=946ec5f#946ec5f00ff071b129758ee8cba5528539fccfe4" dependencies = [ "crypto-bigint 0.5.5", - "curve25519-dalek", + "curve25519-dalek 4.1.3", "monero-io", "rand_core 0.6.4", "sha3 0.10.9", @@ -3586,7 +3710,7 @@ name = "monero-mlsag" version = "0.1.0" source = "git+https://github.com/monero-oxide/monero-oxide.git?rev=946ec5f#946ec5f00ff071b129758ee8cba5528539fccfe4" dependencies = [ - "curve25519-dalek", + "curve25519-dalek 4.1.3", "monero-ed25519", "monero-io", "std-shims", @@ -3599,7 +3723,7 @@ name = "monero-oxide" version = "0.1.4-alpha" source = "git+https://github.com/monero-oxide/monero-oxide.git?rev=946ec5f#946ec5f00ff071b129758ee8cba5528539fccfe4" dependencies = [ - "curve25519-dalek", + "curve25519-dalek 4.1.3", "hex-literal 1.1.0", "monero-borromean", "monero-bulletproofs", @@ -3816,9 +3940,9 @@ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" [[package]] name = "oneshot-fused-workaround" -version = "0.7.1" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56892f7dcba21c5eb4181b8de221620855805891ee55ef960aad7cac3b5d88b2" +checksum = "f851210432a7498257e0f1675c25b95131308f157b87821b70df756b01aa1dbc" dependencies = [ "futures", ] @@ -3831,10 +3955,10 @@ dependencies = [ "arti-client", "chacha20poly1305", "cuprated", - "ed25519-dalek", + "ed25519-dalek 2.2.0", "futures", - "hkdf", - "hmac", + "hkdf 0.12.4", + "hmac 0.12.1", "md-5", "ml-kem", "qrcode", @@ -3845,7 +3969,7 @@ dependencies = [ "rustls", "safelog", "serde_json", - "sha2", + "sha2 0.10.9", "sha3 0.10.9", "snow", "tempfile", @@ -3855,7 +3979,7 @@ dependencies = [ "tor-hsservice", "tor-rtcompat", "tracing-subscriber", - "x25519-dalek", + "x25519-dalek 2.0.1", "zeroize", ] @@ -3951,7 +4075,7 @@ dependencies = [ "ecdsa", "elliptic-curve", "primeorder", - "sha2", + "sha2 0.10.9", ] [[package]] @@ -3963,7 +4087,7 @@ dependencies = [ "ecdsa", "elliptic-curve", "primeorder", - "sha2", + "sha2 0.10.9", ] [[package]] @@ -3977,7 +4101,7 @@ dependencies = [ "elliptic-curve", "primeorder", "rand_core 0.6.4", - "sha2", + "sha2 0.10.9", ] [[package]] @@ -4277,17 +4401,6 @@ dependencies = [ "elliptic-curve", ] -[[package]] -name = "priority-queue" -version = "2.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93980406f12d9f8140ed5abe7155acb10bb1e69ea55c88960b9c2f117445ef96" -dependencies = [ - "equivalent", - "indexmap 2.14.2", - "serde", -] - [[package]] name = "proc-macro-crate" version = "3.5.0" @@ -4420,9 +4533,9 @@ dependencies = [ [[package]] name = "rand" -version = "0.10.2" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80" +checksum = "8f6fa277c67e6ea590466f04c3fe82cb509f0864fe470643e5570de9514a9b11" dependencies = [ "chacha20 0.10.2", "getrandom 0.4.3", @@ -4531,6 +4644,15 @@ version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a611d15b50743feb4c76b7d03edcb0e64f399c26961e4efe6975bc398be6aa3d" +[[package]] +name = "rapidhash" +version = "4.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5da7e78a036ce858e8d55b7e7dc8ba3a88b78350fd2155d3591bbd966b58589e" +dependencies = [ + "rustversion", +] + [[package]] name = "ratatui" version = "0.30.2" @@ -4707,9 +4829,9 @@ dependencies = [ [[package]] name = "retry-error" -version = "0.13.1" +version = "0.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d350ad359aca3414f7261cdcc763e37ccc9fa56fe40ca30a9758c28a295bcad0" +checksum = "67f26b5caa81adf9b23ab230ce975acbf46aec461bc357f9fb51cfd4f2bfaebf" dependencies = [ "humantime", "web-time", @@ -4721,7 +4843,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" dependencies = [ - "hmac", + "hmac 0.12.1", "subtle", ] @@ -4764,8 +4886,8 @@ dependencies = [ "pkcs1", "pkcs8 0.10.2", "rand_core 0.6.4", - "sha2", - "signature", + "sha2 0.10.9", + "signature 2.2.0", "spki 0.7.3", "subtle", "zeroize", @@ -4835,9 +4957,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.44" +version = "0.23.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6725596c3f2c3a0aef021139e145d4eafe314a6623e4680ca83852b2c67ab2ba" +checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf" dependencies = [ "log", "once_cell", @@ -4859,9 +4981,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.103.15" +version = "0.103.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" +checksum = "e3a0760a887c14823fca5a1c970b01d47c328c696c0c64829d1df50e8f853fd5" dependencies = [ "ring", "rustls-pki-types", @@ -4894,9 +5016,9 @@ checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" [[package]] name = "safelog" -version = "0.9.1" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73ef1d6e273fc8ce5cc1376cf498c06d23b786e80e4a7679a643bb0a838b0029" +checksum = "0c090399e87e5eaec9515d6b859fdb7ec417c269c2e7564c169a8963df75a2ce" dependencies = [ "derive_more", "educe", @@ -4925,9 +5047,12 @@ dependencies = [ [[package]] name = "saturating-time" -version = "0.4.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "802bdbfcca9a239cb46eeaaedea507e37bb13ba1a673762d2e2ef7a9dac63144" +checksum = "f950f7f265dc6fc082387eccf710b1adbf22d75f17c4ee0db4648c9b6959b50d" +dependencies = [ + "web-time-compat", +] [[package]] name = "schannel" @@ -5085,9 +5210,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.151" +version = "1.0.154" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" dependencies = [ "itoa", "memchr", @@ -5118,18 +5243,18 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "1.1.1" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26" +checksum = "9c187e0a369471c550af028cba56d4f4fa2a489ad28151ae95a4d340a2a8b782" dependencies = [ "serde_core", ] [[package]] name = "serde_with" -version = "3.23.0" +version = "3.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "935177bb8c0cd8ca1a4e6d1a2ac8988bea69cab4f9d3a31311e012ad27868ea4" +checksum = "56cb1ca7c93ae63d6439b5250f6b6b040f7e121f32e5dd2f5d523dd4149b3204" dependencies = [ "base64", "bs58", @@ -5137,7 +5262,8 @@ dependencies = [ "hex", "indexmap 1.9.3", "indexmap 2.14.2", - "jiff", + "jiff 0.2.35", + "jiff 1.1.0", "schemars 0.9.0", "schemars 1.2.2", "serde_core", @@ -5148,9 +5274,9 @@ dependencies = [ [[package]] name = "serde_with_macros" -version = "3.23.0" +version = "3.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d607aa01a3cb0ad757d6fd216136910db3c97b102fe686585689615a02dbcdc" +checksum = "cff15a7c864bbec77d9586ca6822bc7c369bdf19e9243134a62b0b51ce26b31f" dependencies = [ "darling 0.24.1", "proc-macro2", @@ -5171,13 +5297,13 @@ dependencies = [ [[package]] name = "sha1" -version = "0.10.7" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8" +checksum = "aacc4cc499359472b4abe1bf11d0b12e688af9a805fa5e3016f9a386dc2d0214" dependencies = [ "cfg-if", - "cpufeatures 0.2.17", - "digest 0.10.7", + "cpufeatures 0.3.1", + "digest 0.11.3", ] [[package]] @@ -5191,6 +5317,17 @@ dependencies = [ "digest 0.10.7", ] +[[package]] +name = "sha2" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "820083d430c52864bf834423fc988cbcf61685d6f9d22a765a64e3f6cfe3521c" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.1", + "digest 0.11.3", +] + [[package]] name = "sha3" version = "0.10.9" @@ -5239,7 +5376,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32824fab5e16e6c4d86dc1ba84489390419a39f97699852b66480bb87d297ed8" dependencies = [ "bstr", - "dirs", + "dirs 6.0.0", "os_str_bytes", ] @@ -5290,6 +5427,15 @@ dependencies = [ "rand_core 0.6.4", ] +[[package]] +name = "signature" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28d567dcbaf0049cb8ac2608a76cd95ff9e4412e1899d389ee400918ca7537f5" +dependencies = [ + "rand_core 0.10.1", +] + [[package]] name = "simd-adler32" version = "0.3.10" @@ -5330,15 +5476,14 @@ dependencies = [ [[package]] name = "slotmap-careful" -version = "0.8.1" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba7bcbd01d9b495f4509e74f660ebaf3315219b2f8a81753667ee7d6d8a199ac" +checksum = "0e13aa7333b92ad3a6d3136abaa7fb5d8c19cc121441fcb435f6947d6ef2f8f7" dependencies = [ "paste", "serde", "slotmap", "thiserror 2.0.20", - "void", ] [[package]] @@ -5356,11 +5501,11 @@ dependencies = [ "aes-gcm", "blake2", "chacha20poly1305", - "curve25519-dalek", + "curve25519-dalek 4.1.3", "getrandom 0.3.4", "ring", "rustc_version", - "sha2", + "sha2 0.10.9", "subtle", ] @@ -5433,7 +5578,7 @@ checksum = "e0cf03c3a7ea88451ff83a129a79451fd9891d44fc76c25e916a11848b81814c" dependencies = [ "base64ct", "pem-rfc7468", - "sha2", + "sha2 0.10.9", ] [[package]] @@ -5449,8 +5594,8 @@ dependencies = [ "rand_core 0.6.4", "rsa", "sec1", - "sha2", - "signature", + "sha2 0.10.9", + "signature 2.2.0", "ssh-cipher-fork-arti", "ssh-encoding-fork-arti", "subtle", @@ -5480,6 +5625,19 @@ dependencies = [ "spin 0.10.1", ] +[[package]] +name = "strobe-rs" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83561175f0a962dea437885589480d216d8741debf853e0d36edd526344fd273" +dependencies = [ + "bitflags 2.13.2", + "byteorder", + "keccak 0.2.2", + "subtle", + "zeroize", +] + [[package]] name = "strsim" version = "0.10.0" @@ -5575,6 +5733,17 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "synstructure" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.5", +] + [[package]] name = "sysinfo" version = "0.38.4" @@ -5719,9 +5888,9 @@ dependencies = [ [[package]] name = "tinystr" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643" +checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a" dependencies = [ "displaydoc", "serde_core", @@ -5745,9 +5914,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.53.1" +version = "1.54.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" dependencies = [ "bytes", "libc", @@ -5796,9 +5965,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.19" +version = "0.7.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52" +checksum = "e464cf451ba96ebfc6f9b6542f17ee8b8956e33f1e40d9690624e59d7a7f8a4b" dependencies = [ "bytes", "futures-core", @@ -5826,14 +5995,14 @@ dependencies = [ [[package]] name = "toml" -version = "1.1.5+spec-1.1.0" +version = "1.2.3+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12c0ba9680044b4ce98d391a62094047eada0d64860b80166c39f4a6b5640785" +checksum = "26b1f26e9485c1fa43ee89fe76e9f3fb9e2e52bb227f8594b4d687496b83d073" dependencies = [ "indexmap 2.14.2", "serde_core", - "serde_spanned 1.1.1", - "toml_datetime 1.1.1+spec-1.1.0", + "serde_spanned 1.1.3", + "toml_datetime 1.1.3+spec-1.1.0", "toml_parser", "toml_writer", "winnow 1.0.4", @@ -5850,9 +6019,9 @@ dependencies = [ [[package]] name = "toml_datetime" -version = "1.1.1+spec-1.1.0" +version = "1.1.3+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7" +checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49" dependencies = [ "serde_core", ] @@ -5878,7 +6047,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6975367e4d2ef766d86af01ffad14b622fecc8d4357a998fbc4deb6e9bacaf9b" dependencies = [ "indexmap 2.14.2", - "toml_datetime 1.1.1+spec-1.1.0", + "toml_datetime 1.1.3+spec-1.1.0", "toml_parser", "toml_writer", "winnow 1.0.4", @@ -5886,9 +6055,9 @@ dependencies = [ [[package]] name = "toml_parser" -version = "1.1.3+spec-1.1.0" +version = "1.1.7+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56" +checksum = "0bb28d6e049a9766c3bd91a8326e6179f5b132dec87906bb97018ef7a2f3431a" dependencies = [ "winnow 1.0.4", ] @@ -5901,15 +6070,15 @@ checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801" [[package]] name = "toml_writer" -version = "1.1.2+spec-1.1.0" +version = "1.2.0+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2" +checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a" [[package]] name = "tor-async-utils" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31d9f28de36ed7646f0f03835ce2e306e2c5df8a1784a2cac27bd549cdc07599" +checksum = "8ea51881be51a4dff308071d7cf6489445fd658e821a8bf35c47a4830effd1ab" dependencies = [ "cfg-if", "derive-deftly", @@ -5933,9 +6102,9 @@ dependencies = [ [[package]] name = "tor-basic-utils" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a2bd42110ae0faea1d446b35899aa5c3591cd31a94b593aa9264f00baba41da" +checksum = "235993fcf72e09e597e6b609d52b4cfc2f28bfa8ca827ed304127889639d5776" dependencies = [ "derive-deftly", "derive_more", @@ -5946,7 +6115,7 @@ dependencies = [ "itertools 0.15.0", "libc", "paste", - "rand 0.10.2", + "rand 0.10.4", "rand_chacha 0.10.0", "serde", "slab", @@ -5959,13 +6128,13 @@ dependencies = [ [[package]] name = "tor-bytes" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73de2ba54a125c27a440616f2d806a171bcb4e30013de166c7dc0a79bde44ab4" +checksum = "feb3c0504ae2bca19b92e55c869fe58f68688505737ce2ddae85b60b9806ed4c" dependencies = [ "bytes", "derive-deftly", - "digest 0.10.7", + "digest 0.11.3", "educe", "getrandom 0.4.3", "safelog", @@ -5977,9 +6146,9 @@ dependencies = [ [[package]] name = "tor-cell" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "118f2b6a56605bedd077003ee5678fda215965d550dd0aef21ce8e10dd082750" +checksum = "3a6a814400b9bd2a8d07ee89057db816eed53b2b2719066f77630698f0bd2cb0" dependencies = [ "amplify", "bitflags 2.13.2", @@ -5990,7 +6159,7 @@ dependencies = [ "educe", "itertools 0.15.0", "paste", - "rand 0.10.2", + "rand 0.10.4", "smallvec", "thiserror 2.0.20", "tor-basic-utils", @@ -6008,15 +6177,14 @@ dependencies = [ [[package]] name = "tor-cert" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2cec6ae3abafc382e126a26e74f000bffbbf2c9b1a8c9ec26bb84463f0120b4" +checksum = "68df0747b5d218cfb2c481b2a267bbdbf89dda2849911630e966eed3dc630f7b" dependencies = [ "caret", "derive_builder_fork_arti", "derive_more", - "digest 0.10.7", - "saturating-time", + "digest 0.11.3", "thiserror 2.0.20", "tor-bytes", "tor-checkable", @@ -6027,9 +6195,9 @@ dependencies = [ [[package]] name = "tor-chanmgr" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6cef673b170f10790ff81d2f190e0a8150e5c9683c2c8f4c09652a6954c0e5ab" +checksum = "66b5dec2bf27e75dd65bfe9289f24eee230c49ac4a65f85f0ead3b3b3c19f51d" dependencies = [ "async-trait", "base64ct", @@ -6043,7 +6211,7 @@ dependencies = [ "oneshot-fused-workaround", "percent-encoding", "postage", - "rand 0.10.2", + "rand 0.10.4", "safelog", "serde", "serde_with", @@ -6070,13 +6238,13 @@ dependencies = [ [[package]] name = "tor-checkable" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3872a5bda49647ad4c4a822c58774995ad3acd02327f1cabe6cfc019d714535" +checksum = "bee5237cfbec5e4e7860b6579932072e2dd3dfa91a950a3d2c4c8c253f405c4a" dependencies = [ "humantime", "itertools 0.15.0", - "signature", + "signature 3.0.0", "thiserror 2.0.20", "tor-llcrypto", "web-time-compat", @@ -6084,9 +6252,9 @@ dependencies = [ [[package]] name = "tor-circmgr" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cf1eb6c2e3184c9e51c746df81f1a890ba7b663ac418debe2dac3756d840c8a" +checksum = "9bead875b0e3876110dbfa584ea65af47ed44ebc7ffebb32c460723837aa4843" dependencies = [ "amplify", "async-trait", @@ -6103,7 +6271,7 @@ dependencies = [ "once_cell", "oneshot-fused-workaround", "pin-project", - "rand 0.10.2", + "rand 0.10.4", "retry-error", "safelog", "serde", @@ -6134,9 +6302,9 @@ dependencies = [ [[package]] name = "tor-config" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd8ca5684100c9223590c11685f3f39c4e4c0037c65daddc26927b3ae4cc893d" +checksum = "f9788a9af2a0303e4c05a9bdbf08efbba485c4e92978f140713bc5e201f14580" dependencies = [ "amplify", "cfg-if", @@ -6159,7 +6327,7 @@ dependencies = [ "serde_ignored", "strum", "thiserror 2.0.20", - "toml 1.1.5+spec-1.1.0", + "toml 1.2.3+spec-1.1.0", "tor-basic-utils", "tor-error", "tor-rtcompat", @@ -6169,9 +6337,9 @@ dependencies = [ [[package]] name = "tor-config-path" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbed06099bacbdbb1d91cfff1032863896d6097c33eece067ab20756e4a6fa2b" +checksum = "83d165d5b36b7518e8cf0a51a9ed831019cf9d02afd88b408f2ca8d922710565" dependencies = [ "directories", "serde", @@ -6183,12 +6351,12 @@ dependencies = [ [[package]] name = "tor-consdiff" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9760d0051159a257b1d0065615ad6bc023da4e178d41ff5640222a29852de848" +checksum = "543cd2e0796c7959fe89a2c264ea09ebbb0d1bb70ce4870a2b394ee8d099bbea" dependencies = [ "derive_more", - "digest 0.10.7", + "digest 0.11.3", "hex", "imara-diff", "static_assertions", @@ -6200,9 +6368,9 @@ dependencies = [ [[package]] name = "tor-dirclient" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "403a79a0d00de6c78f15773a284e790459cff6983449e8578490e6b5dfb2afcd" +checksum = "4d683861c37ff8c0c522c5cdfed94a8f43d8c07fc9ae6ce3622ca29ec1b76db2" dependencies = [ "async-compression", "base64ct", @@ -6213,7 +6381,6 @@ dependencies = [ "httparse", "httpdate", "itertools 0.15.0", - "memchr", "thiserror 2.0.20", "tor-circmgr", "tor-error", @@ -6229,9 +6396,9 @@ dependencies = [ [[package]] name = "tor-dircommon" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd5cd2a4f641ecb007cc50914bb1b46128de0975aba08baa56497c8e03c71c71" +checksum = "3c9d4239fe25e4797edc7cf7b6efb4935bcec4552d7fe1ed1b61a30b165736b6" dependencies = [ "base64ct", "derive-deftly", @@ -6250,15 +6417,15 @@ dependencies = [ [[package]] name = "tor-dirmgr" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "805da4e947311285ce0782ab129df318701c2c08046c316086cb6bb3eb7a463e" +checksum = "ceed9e6665621160a7065f3bb56f7bbc77b85aff362f0950415dd882e8c22af9" dependencies = [ "async-trait", "base64ct", "derive_builder_fork_arti", "derive_more", - "digest 0.10.7", + "digest 0.11.3", "educe", "event-listener", "fs-mistrust", @@ -6272,13 +6439,14 @@ dependencies = [ "oneshot-fused-workaround", "paste", "postage", - "rand 0.10.2", + "rand 0.10.4", "rusqlite", "safelog", + "saturating-time", "scopeguard", "serde", "serde_json", - "signature", + "signature 3.0.0", "static_assertions", "strum", "thiserror 2.0.20", @@ -6307,9 +6475,9 @@ dependencies = [ [[package]] name = "tor-error" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f29e906f9f333a6e32e32afac9fb6712ac340191eb3292295b3337682b2dad" +checksum = "1caef18eb269eab70a6244cbfc003e92c8a28c4017fa5f7cb17be718787f151c" dependencies = [ "derive_more", "futures", @@ -6325,9 +6493,9 @@ dependencies = [ [[package]] name = "tor-general-addr" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b45ecd95dbf79070f9e477e1d84b22e47f03b2ab2f853abe31887daa9090cf0" +checksum = "09068bc76af4da4bbf0f17be95693c02253b12ed0aa2b4979bee786a1c7f24b5" dependencies = [ "derive_more", "thiserror 2.0.20", @@ -6336,9 +6504,9 @@ dependencies = [ [[package]] name = "tor-guardmgr" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e84beedbf276ce4ea170206b38ca01c995dbf1b9f678e9708f50e2e71dbfef4" +checksum = "3d430b1785b1e8f6569043b2ae2ca6c340ff5327f39ba3a19b7cfa9c99ad9a1d" dependencies = [ "amplify", "base64ct", @@ -6355,8 +6523,9 @@ dependencies = [ "oneshot-fused-workaround", "pin-project", "postage", - "rand 0.10.2", + "rand 0.10.4", "safelog", + "saturating-time", "serde", "strum", "thiserror 2.0.20", @@ -6380,9 +6549,9 @@ dependencies = [ [[package]] name = "tor-hsclient" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eba66be03b5eb899185e5b4416d8893fdb09a97b33db9e450042f06e2550f0e" +checksum = "aa940dbbff0c4c9323623acb4a49ac40fa227a6a3a07236918f4723db6ab7f9c" dependencies = [ "async-trait", "cfg-if", @@ -6394,7 +6563,7 @@ dependencies = [ "itertools 0.15.0", "oneshot-fused-workaround", "postage", - "rand 0.10.2", + "rand 0.10.4", "retry-error", "safelog", "slotmap-careful", @@ -6426,23 +6595,23 @@ dependencies = [ [[package]] name = "tor-hscrypto" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "118ff6a69bfa111b6e8d087ffb107ea9cbcd5d4469295cd7ada1b3cf19ba5a0f" +checksum = "a262916c319c77cd6dacb3c2aa1e1cdae1d2bf40dae18b1138cf9d544b927dc2" dependencies = [ "cipher 0.5.2", "data-encoding", "derive-deftly", "derive_more", - "digest 0.10.7", + "digest 0.11.3", "hex", "humantime", "itertools 0.15.0", "paste", - "rand 0.10.2", + "rand 0.10.4", "safelog", "serde", - "signature", + "signature 3.0.0", "subtle", "thiserror 2.0.20", "tor-basic-utils", @@ -6459,9 +6628,9 @@ dependencies = [ [[package]] name = "tor-hsservice" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d61a6b5217c14780f54fa1c8610514b1349c93f657304dec98bd8e3083e1a09f" +checksum = "0cfbd1aa7939e12a7dc56b6eefc1e44444de1f0bdf1a5fbd2eb897e4286733c9" dependencies = [ "amplify", "async-trait", @@ -6470,7 +6639,7 @@ dependencies = [ "derive-deftly", "derive_builder_fork_arti", "derive_more", - "digest 0.10.7", + "digest 0.11.3", "educe", "fs-mistrust", "futures", @@ -6482,7 +6651,7 @@ dependencies = [ "once_cell", "oneshot-fused-workaround", "postage", - "rand 0.10.2", + "rand 0.10.4", "rand_core 0.10.1", "retry-error", "safelog", @@ -6518,17 +6687,17 @@ dependencies = [ [[package]] name = "tor-key-forge" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1861b5eebab93515a0ab2401540f3d5a9fb376f1b1535d5793dcd697fb19f928" +checksum = "2788d37b8b723a83da9c3f22ee44530ffef4bf0fb13588bd88f44c90cdaa9bae" dependencies = [ "derive-deftly", "derive_more", "downcast-rs", "paste", - "rand 0.10.2", + "rand 0.10.4", "rsa", - "signature", + "signature 3.0.0", "ssh-key-fork-arti", "thiserror 2.0.20", "tor-bytes", @@ -6540,13 +6709,13 @@ dependencies = [ [[package]] name = "tor-keymgr" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3088a573dadebb34acacb30d686751e2a94d12ccf9d6647946ab6c6b4ad5a0e" +checksum = "119f0f26e6b2a11cd0868374a2287c786e97f22330cd8a8ff69cee96b08670cb" dependencies = [ "amplify", - "arrayvec", "cfg-if", + "data-encoding", "derive-deftly", "derive_builder_fork_arti", "derive_more", @@ -6557,10 +6726,10 @@ dependencies = [ "humantime", "inventory", "itertools 0.15.0", - "rand 0.10.2", + "rand 0.10.4", "safelog", "serde", - "signature", + "signature 3.0.0", "ssh-key-fork-arti", "thiserror 2.0.20", "tor-basic-utils", @@ -6581,9 +6750,9 @@ dependencies = [ [[package]] name = "tor-linkspec" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d8d3a2aaf3bb67110218b9ff1718cd7d6c7e62226e2fee1a18efa6aa19ff07c" +checksum = "7bb55ea69084a82b1f69709059ecfcfb3097adaad6d522dff99d8c52735cb899" dependencies = [ "base64ct", "by_address", @@ -6608,25 +6777,25 @@ dependencies = [ [[package]] name = "tor-llcrypto" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fee81755528eb34f8352ca6987d5f5c66ebba6af2e4618da4b527f17b0e912e" +checksum = "e1f114c13c14b0b2668304e2c9f102534ef95a2a004d1294ede969211c9bc60d" dependencies = [ "aes 0.9.3", "base64ct", "ctr 0.10.1", - "curve25519-dalek", + "curve25519-dalek 5.1.0", "der-parser", "derive-deftly", "derive_more", - "digest 0.10.7", - "ed25519-dalek", + "digest 0.11.3", + "ed25519-dalek 3.0.0", "educe", "getrandom 0.2.17", "getrandom 0.3.4", "getrandom 0.4.3", "hex", - "rand 0.10.2", + "rand 0.10.4", "rand_chacha 0.10.0", "rand_core 0.10.1", "rand_core 0.6.4", @@ -6637,23 +6806,24 @@ dependencies = [ "safelog", "serde", "sha1", - "sha2", - "sha3 0.10.9", - "signature", + "sha2 0.11.3", + "sha3 0.12.0", + "shake", + "signature 3.0.0", "subtle", "thiserror 2.0.20", "tor-error", "tor-memquota-cost", "visibility", - "x25519-dalek", + "x25519-dalek 3.0.0", "zeroize", ] [[package]] name = "tor-log-ratelim" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f8696c8ea9090059d91eea287628b5df0b3b4fba433179d893e348857857544" +checksum = "eea1296076775d399e0b750117c2e1cfba7fe9463add26f056b7c1397c9a3357" dependencies = [ "futures", "humantime", @@ -6667,9 +6837,9 @@ dependencies = [ [[package]] name = "tor-memquota" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03786604757846a5f936285eef397e3fc0ed455893dc5012ceafdf455ada0d8d" +checksum = "075e39b9ac84cd15c8249df1499c642e2fbea2a02cc7f146f19df31d771be0dc" dependencies = [ "cfg-if", "derive-deftly", @@ -6699,9 +6869,9 @@ dependencies = [ [[package]] name = "tor-memquota-cost" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86d6f7e1d842e6272e414e1f866dc688306b788d368df42e47c4995e040c679c" +checksum = "9c7fc75adc50ee789c2ef1633f95647aefc10942bb8a9e6294343dfb574c616c" dependencies = [ "derive-deftly", "itertools 0.15.0", @@ -6711,20 +6881,20 @@ dependencies = [ [[package]] name = "tor-netdir" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d3b84edfe732b77fb1420347902c06d92a1e6992e378ad19da6bdadcb8cd798" +checksum = "27eb00ecbb05d92471bf7ca386ac929ebca28e1034893045679645293bbddbd0" dependencies = [ "async-trait", "bitflags 2.13.2", "derive_more", - "digest 0.10.7", + "digest 0.11.3", "futures", "hex", "humantime", "itertools 0.15.0", "num_enum", - "rand 0.10.2", + "rand 0.10.4", "serde", "strum", "thiserror 2.0.20", @@ -6744,9 +6914,9 @@ dependencies = [ [[package]] name = "tor-netdoc" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b6abd7aaeb2bdbb3fbf760aab9aaa4e8e1a0f8b84d93a834df5a16882faa31e" +checksum = "a4f3fdfb2e47f82c6a15c11fb9bfac8bd4ec9e4bbff786fc23a8f8438436f040" dependencies = [ "amplify", "base64ct", @@ -6754,7 +6924,7 @@ dependencies = [ "derive-deftly", "derive_builder_fork_arti", "derive_more", - "digest 0.10.7", + "digest 0.11.3", "educe", "enumset", "extend", @@ -6767,12 +6937,12 @@ dependencies = [ "memchr", "paste", "phf", - "rand 0.10.2", + "rand 0.10.4", "rangemap", "saturating-time", "serde", "serde_with", - "signature", + "signature 3.0.0", "smallvec", "strum", "subtle", @@ -6797,9 +6967,9 @@ dependencies = [ [[package]] name = "tor-persist" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6f2a41d13a685e181361cfc3bdf25d319b96b56f5806594b6b8ed760d0099ed" +checksum = "48567a8e69f69edc6cfc3a7bfcd83e9ffb8c16617e81b6a4fbe11c391bd6356f" dependencies = [ "amplify", "derive-deftly", @@ -6817,7 +6987,6 @@ dependencies = [ "serde_json", "thiserror 2.0.20", "time", - "tor-async-utils", "tor-basic-utils", "tor-error", "tracing", @@ -6827,9 +6996,9 @@ dependencies = [ [[package]] name = "tor-proto" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ddf767335ae2e255025536d48384b92c6b4b8557e5b345be600e7ca2de1c880" +checksum = "05ee0a62b16f6bde3e1dee30a20e6c6755c5cd912e781c01b96c9d451886848d" dependencies = [ "aes 0.9.3", "amplify", @@ -6845,20 +7014,21 @@ dependencies = [ "derive-deftly", "derive_builder_fork_arti", "derive_more", - "digest 0.10.7", + "digest 0.11.3", "educe", "enum_dispatch", "futures", "futures-util", - "hkdf", - "hmac", + "hkdf 0.13.0", + "hmac 0.13.0", "itertools 0.15.0", + "metrics", "nonany", "oneshot-fused-workaround", "pin-project", "polyval 0.7.3", "postage", - "rand 0.10.2", + "rand 0.10.4", "rand_core 0.10.1", "safelog", "slotmap-careful", @@ -6884,7 +7054,6 @@ dependencies = [ "tor-memquota", "tor-protover", "tor-rtcompat", - "tor-rtmock", "tor-units", "tracing", "typenum", @@ -6896,12 +7065,14 @@ dependencies = [ [[package]] name = "tor-protover" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cab080a7551561bd56c0c2e3578b7114f0853700b96e43613fabc1fe06e5d885" +checksum = "ac0c7d7cc07222e72cc77231839d23259e4a1fdbbb02345c6c85d8ba142ad352" dependencies = [ "caret", "derive-deftly", + "derive_more", + "itertools 0.15.0", "paste", "serde_with", "thiserror 2.0.20", @@ -6911,11 +7082,11 @@ dependencies = [ [[package]] name = "tor-relay-selection" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07a5c22b7cfd59c40e38d4e111906793c0d65cf881e31efe3a83cac42887b1c9" +checksum = "91947cd895147e04a4600103608a3e935541d399e1a0b1b400788ceb7583b6c5" dependencies = [ - "rand 0.10.2", + "rand 0.10.4", "serde", "tor-basic-utils", "tor-linkspec", @@ -6925,9 +7096,9 @@ dependencies = [ [[package]] name = "tor-rtcompat" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "542f4e13054bbba8d764ee24178fd889f77afb59dca7c6ae0a370604118c20b6" +checksum = "6ecbaf82921338764c80b302abf5a75671400cc26d1daf3ee91826c653d5b9fc" dependencies = [ "amplify", "async-native-tls", @@ -6962,43 +7133,12 @@ dependencies = [ "zeroize", ] -[[package]] -name = "tor-rtmock" -version = "0.46.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04cb78b3a39634e46c1bc795f62fca17b4d8a9404fead18750592a03216e1da3" -dependencies = [ - "amplify", - "assert_matches", - "async-trait", - "derive-deftly", - "derive_more", - "educe", - "futures", - "humantime", - "itertools 0.15.0", - "oneshot-fused-workaround", - "pin-project", - "priority-queue", - "slotmap-careful", - "strum", - "thiserror 2.0.20", - "tor-error", - "tor-general-addr", - "tor-rtcompat", - "tracing", - "tracing-test", - "void", - "web-time-compat", -] - [[package]] name = "tor-socksproto" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f96e25e5d36b4aff59af40ec86f7ebb227a32b2f726ef1bc8cccf927f8fb31a" +checksum = "040951b4e279a0ac1b315a4845b69557f7d1ea1376fa911d482333b0693225a6" dependencies = [ - "amplify", "caret", "derive-deftly", "educe", @@ -7011,9 +7151,9 @@ dependencies = [ [[package]] name = "tor-units" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a562c031f6c1f9d22f7bbcfbe715840d0e2cfe5e59d1296cc26000c17130555" +checksum = "475566f8ee463e219980befbdc7b46397c1db5a8f54bd6ac75c41563712c5903" dependencies = [ "derive-deftly", "derive_more", @@ -7144,27 +7284,6 @@ dependencies = [ "tracing-log", ] -[[package]] -name = "tracing-test" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19a4c448db514d4f24c5ddb9f73f2ee71bfb24c526cf0c570ba142d1119e0051" -dependencies = [ - "tracing-core", - "tracing-subscriber", - "tracing-test-macro", -] - -[[package]] -name = "tracing-test-macro" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad06847b7afb65c7866a36664b75c40b895e318cea4f71299f013fb22965329d" -dependencies = [ - "quote", - "syn 2.0.119", -] - [[package]] name = "twox-hash" version = "2.1.4" @@ -7438,9 +7557,9 @@ dependencies = [ [[package]] name = "web-time-compat" -version = "0.2.1" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6ab47578e1cd38415489592da29326341e272bd281f4ddbc0c10b654a425ad7" +checksum = "f854754465eaf0d17b96236f75c6ddfaebf5907dc31c24ecdc265ffe609756c5" dependencies = [ "web-time", ] @@ -7796,12 +7915,23 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7e468321c81fb07fa7f4c636c3972b9100f0346e5b6a9f2bd0603a52f7ed277" dependencies = [ - "curve25519-dalek", + "curve25519-dalek 4.1.3", "rand_core 0.6.4", "serde", "zeroize", ] +[[package]] +name = "x25519-dalek" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e8131a03190127fb2263afc72b322ecadae46b6ff8c6f399ff5d02f5559af6" +dependencies = [ + "curve25519-dalek 5.1.0", + "rand_core 0.10.1", + "zeroize", +] + [[package]] name = "xxhash-rust" version = "0.8.18" @@ -7810,9 +7940,9 @@ checksum = "aee1b19627c7c60102ab80d3a9cbe18de90bfe03bfa6c3715447681f0e8c8af6" [[package]] name = "yoke" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5" +checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3" dependencies = [ "stable_deref_trait", "yoke-derive", @@ -7821,14 +7951,14 @@ dependencies = [ [[package]] name = "yoke-derive" -version = "0.8.2" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" +checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71" dependencies = [ "proc-macro2", "quote", - "syn 2.0.119", - "synstructure", + "syn 3.0.5", + "synstructure 0.14.0", ] [[package]] @@ -7869,7 +7999,7 @@ dependencies = [ "proc-macro2", "quote", "syn 2.0.119", - "synstructure", + "synstructure 0.13.2", ] [[package]] @@ -7905,9 +8035,9 @@ dependencies = [ [[package]] name = "zerovec" -version = "0.11.8" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8" +checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40" dependencies = [ "serde", "yoke", @@ -7917,9 +8047,9 @@ dependencies = [ [[package]] name = "zerovec-derive" -version = "0.11.6" +version = "0.11.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da" +checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 7a16989..7002734 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "onionwire" version = "0.2.1" edition = "2024" -# 1.98, not 1.91. Arti 0.46 builds on 1.91, but the default feature set includes +# 1.98, not 1.92. Arti 0.49 builds on 1.92, but the default feature set includes # `cuprate-daemon`, and `tapes` (a Cuprate dep this repo cannot patch) calls # `VecDeque::pop_front_if`, stable only from 1.93. 1.98 is the release CI and # the Android workflows actually build that graph with. `--no-default-features` @@ -36,26 +36,26 @@ rustls = ["arti-client/rustls"] # Cuprate's own `arti` feature stays OFF (and is off in its default feature set, # which is why `default-features = false` is load-bearing): it would link a # second, older Tor stack (arti-client 0.44, which cannot unify with this -# crate's 0.46) next to OnionWire's. The in-process daemon runs clearnet-only; +# crate's 0.49) next to OnionWire's. The in-process daemon runs clearnet-only; # OnionWire's Arti is the only Tor in the process. cuprate-daemon = ["dep:cuprated", "dep:toml"] [dependencies] -arti-client = { version = "0.46", default-features = false, features = [ +arti-client = { version = "0.49", default-features = false, features = [ "tokio", "onion-service-client", "onion-service-service", "compression", ] } futures = "0.3" -safelog = "0.9" +safelog = "0.10" ed25519-dalek = { version = "2", features = ["rand_core"] } rand = "0.8" rusqlite = { version = "0.36", features = ["bundled-sqlcipher-vendored-openssl"] } tokio = { version = "1", features = ["rt-multi-thread", "macros", "io-util", "time", "net"] } -tor-cell = "0.46" -tor-hsservice = "0.46" -tor-rtcompat = { version = "0.46", features = ["tokio"] } +tor-cell = "0.49" +tor-hsservice = "0.49" +tor-rtcompat = { version = "0.49", features = ["tokio"] } # Direct dependency only to select rustls's crypto provider: Arti pulls rustls in # through `tor-rtcompat` with `default-features = false`, and rustls 0.23 # resolves its provider from its OWN `ring`/`aws-lc-rs` features, so without this diff --git a/README.md b/README.md index 8061fde..21bc666 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ format (` onionwire-`). ### Option B — build from source Needs [Rust](https://rustup.rs/) **1.98+** (`edition = "2024"`; `Cargo.toml` -`rust-version = "1.98"`). Arti 0.46 itself builds on 1.91, but the default +`rust-version = "1.98"`). Arti 0.49 itself builds on 1.92, but the default feature set includes the in-process chain daemon, and that graph does not (`tapes` calls `VecDeque::pop_front_if`, stable since 1.93). Do not install `tor`. diff --git a/android/app/src/main/java/com/siriusdevops/onionwire/WireViewModel.kt b/android/app/src/main/java/com/siriusdevops/onionwire/WireViewModel.kt index cc16ef2..5da0390 100644 --- a/android/app/src/main/java/com/siriusdevops/onionwire/WireViewModel.kt +++ b/android/app/src/main/java/com/siriusdevops/onionwire/WireViewModel.kt @@ -15,6 +15,9 @@ import com.siriusdevops.onionwire.keepalive.KeepAliveStatus import com.siriusdevops.onionwire.keepalive.NodeHost import com.siriusdevops.onionwire.ui.SeedBackupGate import com.siriusdevops.onionwire.ui.WalletKeyOrigin +import com.siriusdevops.onionwire.ui.NO_CHAIN_SOURCE_NOTICE +import com.siriusdevops.onionwire.ui.storedWalletBinBlockedReason +import com.siriusdevops.onionwire.ui.walletBinHealPath import com.siriusdevops.onionwire.ui.walletFailureText import com.siriusdevops.onionwire.wallet.ChainStorage import com.siriusdevops.onionwire.wallet.NO_WALLET_RPC_MESSAGE @@ -1015,10 +1018,72 @@ class WireViewModel(app: Application) : AndroidViewModel(app) { */ fun chainFreeBytes(): Long? = ChainStorage.freeBytes(home) + /** + * Repairs a stored `walletRpcBin` this device cannot execute, and reports + * whether it wrote anything back. + * + * A wallet-child record written by an older install can carry the bare name + * `monero-wallet-rpc` (or an empty string). Nothing in an APK sandbox + * resolves a bare name on `PATH`, so `start_wallet_child` spawns it and dies + * with `No such file or directory` — while the Start gate, which only ever + * looked at the *resolved* bundle, stayed green. This re-points the stored + * record at the absolute `nativeLibraryDir` path this install actually + * carries, before anything is spawned. + * + * What it deliberately does not do: + * - it never changes `kind`, host, port, mode, datadir or wallet filename — + * a repair of the binary is not a change of chain source; + * - it does nothing for receive-only (`ChainChoice.NONE`), which stores a + * bin it never spawns; + * - it never overwrites a stored path that exists and is executable, even + * when that path is not the bundled binary — a user who pointed at a real + * file keeps it; + * - it never fails loudly: a repair that cannot be made leaves the stored + * record alone, and the gate then names the path it will try to spawn. + */ + suspend fun healStoredWalletBin(bins: WalletChildBinaryPaths): Result = + withContext(Dispatchers.IO) { + runCatching { + val wire = requireWire() + val stored = runCatching { wire.chainSource() }.getOrNull() + ?: return@runCatching false + if (stored.kind == ChainChoice.NONE) return@runCatching false + val healed = walletBinHealPath(stored.walletRpcBin, bins.walletRpc) + ?: return@runCatching false + wire.setChainSource( + ChainConfig( + kind = stored.kind, + monerodBin = stored.monerodBin, + monerodDatadir = stored.monerodDatadir, + host = stored.host, + port = stored.port, + walletRpcBin = healed, + artiBin = stored.artiBin, + walletFilename = stored.walletFilename, + mainnet = stored.mainnet, + prune = stored.prune, + ), + ) + true + } + }.onSuccess { healed -> + if (healed) { + refreshChainSource() + refreshWalletChild() + } + } + /** * Kick off start on [viewModelScope] so leaving the composition does not * cancel Cuprate launch. Returns immediately; watch [walletChildStarting] * and [walletChildError]. Core status stays `off` until the node answers. + * + * Self-heals the stored binary first, then re-reads that stored record and + * refuses to spawn when it still names a path this device cannot run. The + * screen's gate is the primary door, but an auto-start from a mode tap is + * not the only caller: this is the last place that can stop a doomed spawn, + * and the reason it writes is the named path rather than the core's opaque + * `spawn monero-wallet-rpc: …`. */ fun startWalletChild() { if (!startInFlight.compareAndSet(false, true)) return @@ -1026,6 +1091,20 @@ class WireViewModel(app: Application) : AndroidViewModel(app) { _walletChildError.value = null viewModelScope.launch { try { + val bins = bundledBinaries() + healStoredWalletBin(bins) + val stored = withContext(Dispatchers.IO) { + runCatching { requireWire().chainSource() }.getOrNull() + } + if (stored == null || stored.kind == ChainChoice.NONE) { + _walletChildError.value = NO_CHAIN_SOURCE_NOTICE + return@launch + } + val blocked = storedWalletBinBlockedReason(stored.walletRpcBin, bins.walletRpc) + if (blocked != null) { + _walletChildError.value = blocked + return@launch + } val started = withContext(Dispatchers.IO) { runCatching { requireWire().startWalletChild() } } diff --git a/android/app/src/main/java/com/siriusdevops/onionwire/ui/WalletChildStatusText.kt b/android/app/src/main/java/com/siriusdevops/onionwire/ui/WalletChildStatusText.kt index 5bae4d1..2f15281 100644 --- a/android/app/src/main/java/com/siriusdevops/onionwire/ui/WalletChildStatusText.kt +++ b/android/app/src/main/java/com/siriusdevops/onionwire/ui/WalletChildStatusText.kt @@ -2,6 +2,7 @@ package com.siriusdevops.onionwire.ui import com.siriusdevops.onionwire.wallet.NO_WALLET_RPC_MESSAGE import com.siriusdevops.onionwire.wallet.WalletChildBinaryPaths +import java.io.File import java.util.Locale /** @@ -446,13 +447,21 @@ fun selectedCuprateMode(inProcess: Boolean, mainnet: Boolean, prune: Boolean): C /** * Tapping a mode used to only persist `ChainConfig`, which looked like a no-op - * besides the storage line. Start when the storage floor would allow Start and - * a launch is not already in flight. + * besides the storage line. Start when the storage floor would allow Start, + * **the Start gate itself would allow it**, and a launch is not already in + * flight. + * + * [startBlocked] is the same reason the Start button is disabled by + * (`startGateReason`). A mode tap stores the source either way, but persisting + * a choice must never launch a child the gate would refuse — the old + * storage-only predicate is exactly how an auto-start slipped past a stored + * binary that could not run. */ fun shouldStartAfterSelectingChain( storageBlocked: String?, starting: Boolean, -): Boolean = storageBlocked == null && !starting + startBlocked: String? = null, +): Boolean = storageBlocked == null && startBlocked == null && !starting /** * Bytes as a screen-sized string. Binary units (a "GB" that is really a GiB is how @@ -609,7 +618,7 @@ fun startBlockedReason( // control *is* Stop, so Start is never offered. Kept as a pure predicate so // a stale status read cannot turn the one control into a no-op tap. input.running -> "The wallet is already running." - !input.configured -> "No chain source yet: the wallet needs a daemon to dial." + !input.configured -> NO_CHAIN_SOURCE_NOTICE // The stored source is the app's own node but this build has no daemon: the // option is readable and unstoppable, so say it before the user presses Start. input.chainInProcess && !input.nodeAvailable -> CUPRATE_NOT_IN_BUILD_NOTICE @@ -617,6 +626,172 @@ fun startBlockedReason( else -> null } +/** The stored config names no chain source, so there is no daemon to dial. */ +const val NO_CHAIN_SOURCE_NOTICE: String = + "No chain source yet: the wallet needs a daemon to dial." + +/** + * Whether [path] is a file this process may `exec`, measured the way the kernel + * will measure it at spawn time. A missing file and an existing file without + * the execute bit are both "cannot run here" — they differ only in errno. + * + * Never throws: a path the filesystem refuses to answer for is not executable. + */ +fun isExecutableWalletBin(path: String): Boolean = + runCatching { File(path).let { it.isFile && it.canExecute() } }.getOrDefault(false) + +/** + * The absolute path the stored config should keep instead of [storedBin], or + * `null` when the stored path is already runnable here (or there is nothing + * better to offer). + * + * This is the repair rule behind the self-heal. A record written by an older + * install can carry the bare name `monero-wallet-rpc` (or nothing at all), + * which nothing in an APK sandbox resolves on `PATH`; the spawn then dies with + * `ENOENT` and the screen had no way to say why. When this build *does* carry + * the binary at a resolved absolute path, that path replaces the unusable one. + * + * It never overwrites a path the user pointed at that actually runs: an + * existing, executable file is left alone even when it is not the bundled one. + */ +fun walletBinHealPath( + storedBin: String?, + resolvedBin: String?, + executable: (String) -> Boolean = ::isExecutableWalletBin, +): String? { + val resolved = resolvedBin?.takeIf { it.isNotBlank() } ?: return null + val stored = storedBin?.trim().orEmpty() + if (stored.isNotEmpty() && executable(stored)) return null + return resolved +} + +/** + * Why the **stored** `ChainConfig.walletRpcBin` will not produce a child, or + * `null` when it will. [startBlockedReason] only ever sees the *resolved* + * binaries, so a stale path saved by an older install passed that gate and + * then failed inside `spawn`. + * + * The reason always names the path it is about, so the next failure report + * carries its own cause instead of the opaque `spawn monero-wallet-rpc: No such + * file or directory`. A store that holds no path at all is named as such — + * "stored bin missing" is a distinct condition from "this build ships none". + */ +fun storedWalletBinBlockedReason( + storedBin: String?, + resolvedBin: String?, + executable: (String) -> Boolean = ::isExecutableWalletBin, +): String? { + if (resolvedBin.isNullOrBlank()) return NO_WALLET_RPC_MESSAGE + val stored = storedBin?.trim().orEmpty() + if (stored.isEmpty()) { + return "No wallet binary path is stored for this chain source, so there is nothing to " + + "spawn. This build ships $resolvedBin — pick a chain source to store it." + } + if (executable(stored)) return null + return "The stored wallet binary cannot be run on this device: $stored. " + + "This build ships $resolvedBin." +} + +/** + * The full **Start** gate: the eligibility rules above plus the stored binary. + * + * [startBlockedReason] runs first so its established copy and ordering (no + * binary in this build, start in flight, no chain source) is unchanged; the + * stored-path check is the new second half. Together they make a populated + * `bins` insufficient on its own — which was the hole that let a bare stored + * name through. + */ +fun startGateReason( + bins: WalletChildBinaryPaths, + input: WalletChildInput?, + storedWalletBin: String?, + onionDaemon: Boolean = false, + starting: Boolean = false, + executable: (String) -> Boolean = ::isExecutableWalletBin, +): String? = + startBlockedReason(bins, input, onionDaemon, starting) + ?: storedWalletBinBlockedReason(storedWalletBin, bins.walletRpc, executable) + +/** + * Why **Create wallet** / **Import wallet** cannot be offered yet, or `null` + * when they can. + * + * Both are RPC calls (`create_wallet` / `restore_deterministic_wallet`) against + * the running child. With no child the call cannot succeed, and the core's + * refusal is the desktop TUI's `wallet not configured — open F7 …` — a key that + * does not exist on a phone. Collecting a passphrase only to print that is the + * second dead end this screen must not offer. + */ +fun walletSetupBlockedReason(input: WalletChildInput?): String? = + when (walletChildPhase(input)) { + WalletChildPhase.Unread -> READING_CHILD_NOTICE + WalletChildPhase.Off -> WALLET_SETUP_NEEDS_CHILD + WalletChildPhase.Connecting -> WALLET_SETUP_STARTING + is WalletChildPhase.Exited, is WalletChildPhase.Unrecognised -> WALLET_SETUP_NEEDS_CHILD + WalletChildPhase.Syncing, WalletChildPhase.Ready -> null + } + +/** Shown on the disabled Create / Import controls when no wallet process is up. */ +const val WALLET_SETUP_NEEDS_CHILD: String = + "Create and Import need the wallet process running. Start it on the node card first." + +/** Shown while the child is up but its RPC has not answered yet. */ +const val WALLET_SETUP_STARTING: String = + "The wallet is still starting. Wait until it answers, then create or import." + +/** Tone of the one failure banner a card may paint. */ +enum class WalletFailureTone { + /** Information about a state the app is in, not a failed call. */ + Info, + + /** A call actually failed. */ + Error, +} + +/** + * The banner a card should paint for a display-ready failure string, or `null` + * when it should paint none. + * + * [WALLET_NOT_OPEN_TEXT] is documented as a *state*, not a failure — a running + * child with no wallet file open answers every read with the daemon's `-13`, + * and that is exactly what first-run looks like. It nevertheless reached the + * node card's red `Wallet error` banner, duplicating the `No wallet open` info + * banner directly above it. This decision is keyed on the *mapped* text only: + * the mapping in [walletFailureText] is untouched, so nothing raw becomes + * visible, and only the paint changes. + * + * - [walletOpen] true: the state has ended, so a stale no-wallet sentence is + * dropped entirely. + * - [openHintVisible] true: the info banner above already says it — one + * sentence, once. + * - otherwise the sentence is still information, so it is painted as + * [WalletFailureTone.Info] rather than red. + */ +fun walletFailureBanner( + text: String?, + openHintVisible: Boolean, + walletOpen: Boolean, +): WalletFailureBanner? { + val shown = text?.takeIf { it.isNotBlank() } ?: return null + return if (shown == WALLET_NOT_OPEN_TEXT) { + when { + walletOpen -> null + openHintVisible -> null + else -> WalletFailureBanner(shown, WalletFailureTone.Info, "No wallet open") + } + } else { + WalletFailureBanner(shown, WalletFailureTone.Error, "Wallet error") + } +} + +/** One banner: its sentence, its tone, and its title. */ +data class WalletFailureBanner( + val text: String, + val tone: WalletFailureTone, + val title: String, +) + + /** * Why **Stop** is not actionable, or `null` when it is. `stop_wallet_child` is * idempotent in the core, so this is only about not offering a no-op button. diff --git a/android/app/src/main/java/com/siriusdevops/onionwire/ui/WalletManagerScreen.kt b/android/app/src/main/java/com/siriusdevops/onionwire/ui/WalletManagerScreen.kt index 68884be..214394d 100644 --- a/android/app/src/main/java/com/siriusdevops/onionwire/ui/WalletManagerScreen.kt +++ b/android/app/src/main/java/com/siriusdevops/onionwire/ui/WalletManagerScreen.kt @@ -176,6 +176,31 @@ const val WALLET_DAEMON_REFUSED_TEXT: String = "The wallet daemon refused that request and gave no readable reason. Check the wallet " + "on the wallet screen, then try again." +/** + * The desktop TUI's refusal, in the phone's words. + * + * `src/wallet.rs::NOT_CONFIGURED_MSG` is written for the Linux TUI: "wallet not + * configured — open F7 to set it up, or set ONIONWIRE_WALLET_RPC". Neither `F7` + * nor an environment variable exists on the phone, and the actual condition is + * simply that no wallet child is running. Printing that string was the second + * dead end on the device: a user who typed a passphrase into Create got told to + * press a key that is not on the device. + */ +const val WALLET_RPC_NOT_RUNNING_TEXT: String = + "The wallet process is not running, so there is nothing to open a wallet on. " + + "Start it on the node card, then create or import." + +/** + * The TUI's unconfigured copy, and nothing else: the F7 hint, the phrase + * "wallet not configured", or an instruction to set `ONIONWIRE_WALLET_RPC`. + * All three describe the same fact — no wallet RPC to dial — and none of them + * is actionable on a phone. + */ +private val TUI_WALLET_NOT_CONFIGURED = Regex( + """open\s*f7|wallet not configured|ONIONWIRE_WALLET_RPC""", + RegexOption.IGNORE_CASE, +) + /** * A failure string safe to put on screen, or `null` when there is nothing to * show. @@ -201,6 +226,9 @@ internal fun walletFailureText(raw: String?): String? { val text = raw?.trim().orEmpty() return when { text.isEmpty() -> null + // Before the JSON / -13 filters: the TUI's refusal is a plain sentence + // the raw pass-through would otherwise let reach the phone verbatim. + TUI_WALLET_NOT_CONFIGURED.containsMatchIn(text) -> WALLET_RPC_NOT_RUNNING_TEXT NO_WALLET_FILE.containsMatchIn(text) || RAW_RPC_CODE.containsMatchIn(text) -> WALLET_NOT_OPEN_TEXT RAW_JSON.containsMatchIn(text) -> WALLET_DAEMON_REFUSED_TEXT diff --git a/android/app/src/main/java/com/siriusdevops/onionwire/ui/WalletScreen.kt b/android/app/src/main/java/com/siriusdevops/onionwire/ui/WalletScreen.kt index 67c2f29..4299cc2 100644 --- a/android/app/src/main/java/com/siriusdevops/onionwire/ui/WalletScreen.kt +++ b/android/app/src/main/java/com/siriusdevops/onionwire/ui/WalletScreen.kt @@ -169,6 +169,11 @@ fun WalletScreen( LaunchedEffect(Unit) { reload() vm.refreshChainSource() + // Self-heal before the gate is asked: a stored `wallet_rpc_bin` left by + // an older install can point at a path this device cannot execute, and + // the bundled binary is the right answer for it. The gate below then + // names the path only when no repair was possible. + vm.healStoredWalletBin(bins) } // The same reads again, once the wallet has actually answered. They are @@ -262,22 +267,33 @@ fun WalletScreen( // about a seed they do not have. val walletReadable = balance != null && balance != "off" && balance != "err" val walletOpen = child?.walletOpen == true + // A sticky failure captured while no wallet was open is not a + // failure once one is: drop it, so the red line does not outlive + // the state that produced it. + LaunchedEffect(walletOpen) { + if (walletOpen) vm.clearWalletChildError() + } val unbacked = SeedBackupGate.warningVisible(seedConfirmed, walletReadable) if (unbacked) { UnbackedSeedCard(error = error, onBackUpSeed = { openSeedBackup() }) } val phase = walletChildPhase(childInput) + // Create and Import are RPC calls against the running child. With no + // child up they can only fail, and the failure is the TUI's `open F7` + // copy — so the controls stay dead and say why instead. + val setupBlocked = walletSetupBlockedReason(childInput) WalletHeroCard( balance = balance, address = address, walletOpen = walletOpen, phase = phase, showQr = showQr, + setupBlocked = setupBlocked, onToggleQr = { showQr = !showQr }, onOpenWallets = onOpenWallets, - onCreate = { setup = SetupKind.Create }, - onImport = { setup = SetupKind.Import }, + onCreate = { if (setupBlocked == null) setup = SetupKind.Create }, + onImport = { if (setupBlocked == null) setup = SetupKind.Import }, onInvoice = { composer = PayKind.Invoice }, onTip = { composer = PayKind.Tip }, onBackUpSeed = if ( @@ -336,9 +352,12 @@ fun WalletScreen( .onFailure { daemonError = walletFailureText(it.message ?: it.toString()) } .onSuccess { // Selecting a mode stores it and, when the - // storage floor would allow Start, starts the - // node: a mode button that only rewrites a - // storage line reads as a no-op. + // storage floor *and* the Start gate would allow + // a launch, starts the node. The stored binary is + // what the just-saved config holds; the gate + // asks it the same question Start does, so a + // mode tap can never launch a child Start would + // have refused. if (shouldStartAfterSelectingChain( chainStorageBlockedReason( vm.chainFreeBytes(), @@ -346,6 +365,10 @@ fun WalletScreen( prune = prune, ), starting = starting, + startBlocked = storedWalletBinBlockedReason( + bins.walletRpc, + bins.walletRpc, + ), ) ) { vm.startWalletChild() @@ -442,6 +465,12 @@ private fun WalletHeroCard( walletOpen: Boolean, phase: WalletChildPhase, showQr: Boolean, + /** + * Why Create / Import cannot be offered yet, or `null` when they can. From + * [walletSetupBlockedReason]: both flows are RPC calls against a running + * wallet child, so a stopped child is a dead end the screen may not offer. + */ + setupBlocked: String?, onToggleQr: () -> Unit, onOpenWallets: () -> Unit, onCreate: () -> Unit, @@ -502,16 +531,30 @@ private fun WalletHeroCard( OwButton( text = "Create Wallet", variant = OwButtonVariant.Primary, + enabled = setupBlocked == null, onClick = onCreate, modifier = Modifier.weight(1f).testTag("wallet-create"), ) OwButton( text = "Import Wallet", variant = OwButtonVariant.Secondary, + enabled = setupBlocked == null, onClick = onImport, modifier = Modifier.weight(1f).testTag("wallet-import"), ) } + // Why the two flows are dead, in a sentence rather than a grey pair + // of buttons. The only fix is on the node card below, so the copy + // points there. + setupBlocked?.let { + Spacer(Modifier.height(8.dp)) + OwAlertBanner( + variant = OwAlertVariant.Info, + title = "Wallet not running", + description = it, + modifier = Modifier.testTag("wallet-setup-blocked"), + ) + } // Invoicing does not need a wallet file: the core resolves the payee // address from the profile (`no receive address — set profile xmr or // ONIONWIRE_WALLET_RPC` is the both-missing case). Hiding the action @@ -614,16 +657,27 @@ private fun WalletHeroCard( OwButton( text = "New wallet", variant = OwButtonVariant.Outline, + enabled = setupBlocked == null, onClick = onCreate, modifier = Modifier.weight(1f).testTag("wallet-create"), ) OwButton( text = "Import wallet", variant = OwButtonVariant.Outline, + enabled = setupBlocked == null, onClick = onImport, modifier = Modifier.weight(1f).testTag("wallet-import"), ) } + setupBlocked?.let { + Spacer(Modifier.height(8.dp)) + OwAlertBanner( + variant = OwAlertVariant.Info, + title = "Wallet not running", + description = it, + modifier = Modifier.testTag("wallet-setup-blocked"), + ) + } // The recovery path for a wallet whose seed was missed: a quiet action, // because a healthy wallet needs it rarely and a seed is a spend key. // While the seed is unconfirmed the strip above carries the button @@ -690,7 +744,10 @@ private fun NodeCard( val progress = syncProgress(input?.height ?: 0uL, input?.targetHeight ?: 0uL) val node = nodePhase(input) val onionDaemon = chain?.kind == ChainChoice.REMOTE && isOnionHost(chain.host) - val startWhy = startBlockedReason(bins, input, onionDaemon, starting) + // The full gate: eligibility *and* the stored binary this build will + // actually spawn. A populated `bins` alone used to pass, which is how a + // stored bare name got as far as `spawn` and failed with ENOENT. + val startWhy = startGateReason(bins, input, chain?.walletRpcBin, onionDaemon, starting) ?: if (inProcess) { chainStorageBlockedReason( nodeFreeBytes, @@ -976,15 +1033,28 @@ private fun NodeCard( // acts, like the chat screen's load error. Filtered through // `walletFailureText`: the daemon's own `-13 No wallet file` / JSON // answer is not a sentence about this app and never reaches the screen. + // + // "No wallet open" is a state, not a failure: the info banner above + // already owns it, so it is not painted red and not printed twice. val failure = walletFailureText(input?.lastError) ?: actionError ?: daemonError failure?.let { - Spacer(Modifier.height(8.dp)) - OwAlertBanner( - variant = OwAlertVariant.Error, - title = "Wallet error", - description = it, - modifier = Modifier.testTag("wallet-child-error"), - ) + walletFailureBanner( + text = it, + openHintVisible = openHint != null, + walletOpen = walletOpen, + )?.let { banner -> + Spacer(Modifier.height(8.dp)) + OwAlertBanner( + variant = if (banner.tone == WalletFailureTone.Info) { + OwAlertVariant.Info + } else { + OwAlertVariant.Error + }, + title = banner.title, + description = banner.text, + modifier = Modifier.testTag("wallet-child-error"), + ) + } } } } diff --git a/android/app/src/test/java/com/siriusdevops/onionwire/ui/WalletChildStatusTextTest.kt b/android/app/src/test/java/com/siriusdevops/onionwire/ui/WalletChildStatusTextTest.kt index def027a..255c217 100644 --- a/android/app/src/test/java/com/siriusdevops/onionwire/ui/WalletChildStatusTextTest.kt +++ b/android/app/src/test/java/com/siriusdevops/onionwire/ui/WalletChildStatusTextTest.kt @@ -621,4 +621,140 @@ class WalletChildStatusTextTest { nodeStatusHead(input("syncing", running = true, chainSource = "remote daemon")).title, ) } + + // --- the stored wallet binary: heal before spawn, then gate on it ------- + + private val hostsBundled = "/data/app/~~abc/onionwire-1/lib/arm64/libmonerowalletrpc.so" + + @Test + fun a_stored_bare_name_is_repaired_to_the_bundled_absolute_path() { + // A record written by an older install: a bare name nothing in an APK + // sandbox resolves on PATH. The repair is the absolute path this + // install actually carries. + assertEquals(hostsBundled, walletBinHealPath("monero-wallet-rpc", hostsBundled) { false }) + assertEquals("an empty stored bin is healed too", hostsBundled, walletBinHealPath("", hostsBundled) { false }) + assertEquals("and a missing field", hostsBundled, walletBinHealPath(null, hostsBundled) { false }) + } + + @Test + fun a_stored_path_that_actually_runs_is_never_overwritten() { + val userBin = "/data/user/0/com.siriusdevops.onionwire/files/monero-wallet-rpc" + assertNull( + "a real executable file the user pointed at is left alone", + walletBinHealPath(userBin, hostsBundled) { it == userBin }, + ) + assertNull( + "a bundled path already stored needs no write", + walletBinHealPath(hostsBundled, hostsBundled) { it == hostsBundled }, + ) + } + + @Test + fun no_bundled_binary_means_there_is_nothing_to_repair_with() { + assertNull(walletBinHealPath("monero-wallet-rpc", null) { false }) + assertNull(walletBinHealPath("monero-wallet-rpc", " ") { false }) + } + + @Test + fun a_stored_bin_missing_on_the_device_blocks_start_and_names_the_path() { + val why = startGateReason(bundled, input("off"), "monero-wallet-rpc") { false } + assertNotNull("a stored path that cannot run must block Start", why) + assertTrue("the reason names the stored path it is about", why!!.contains("monero-wallet-rpc")) + assertTrue("and the path this build does carry", why.contains(bundled.walletRpc!!)) + assertTrue("and says it cannot run", why.contains("cannot be run")) + assertFalse( + "a gate that refuses never lets a mode tap auto-start", + shouldStartAfterSelectingChain(storageBlocked = null, starting = false, startBlocked = why), + ) + } + + @Test + fun an_absent_resolved_bin_blocks_with_the_resolved_absence_message() { + // Nothing in this build to spawn: the established string, unchanged. + val why = startGateReason(noBinary, input("off"), "/stale/libmonerowalletrpc.so") { false } + assertEquals(NO_WALLET_RPC_MESSAGE, why) + assertFalse(shouldStartAfterSelectingChain(null, false, why)) + } + + @Test + fun a_runnable_stored_bin_passes_the_gate() { + assertNull(startGateReason(bundled, input("off"), bundled.walletRpc) { it == bundled.walletRpc }) + assertNull(storedWalletBinBlockedReason(bundled.walletRpc, bundled.walletRpc) { true }) + } + + @Test + fun the_gate_keeps_the_established_start_ordering() { + // Reading the status still wins over a stored-path complaint: the + // existing copy and its order were not rewritten to make room. + assertEquals(READING_CHILD_NOTICE, startGateReason(bundled, null, null) { false }) + assertEquals( + NO_CHAIN_SOURCE_NOTICE, + startGateReason(bundled, input("off", configured = false, chainSource = "receive-only"), null) { false }, + ) + } + + @Test + fun a_mode_tap_stores_the_source_but_cannot_auto_start_what_the_gate_refuses() { + assertTrue(shouldStartAfterSelectingChain(storageBlocked = null, starting = false)) + assertTrue( + shouldStartAfterSelectingChain(storageBlocked = null, starting = false, startBlocked = null), + ) + assertFalse( + shouldStartAfterSelectingChain( + storageBlocked = null, + starting = false, + startBlocked = "The stored wallet binary cannot be run on this device: …", + ), + ) + } + + @Test + fun create_and_import_are_blocked_without_a_running_child() { + assertEquals(WALLET_SETUP_NEEDS_CHILD, walletSetupBlockedReason(input("off"))) + assertEquals(WALLET_SETUP_NEEDS_CHILD, walletSetupBlockedReason(input("exited", lastError = "spawn …"))) + assertEquals(WALLET_SETUP_NEEDS_CHILD, walletSetupBlockedReason(input("mining"))) + assertEquals(WALLET_SETUP_STARTING, walletSetupBlockedReason(input("connecting", running = true))) + assertEquals(READING_CHILD_NOTICE, walletSetupBlockedReason(null)) + assertNull( + "a syncing wallet answers RPC, so a create is fine", + walletSetupBlockedReason(input("syncing", running = true)), + ) + assertNull(walletSetupBlockedReason(input("ready", running = true))) + } + + // --- the no-wallet-open state is information, not a failure ------------ + + @Test + fun the_no_wallet_open_state_is_information_never_the_red_failure() { + // The `No wallet open` info banner owns this sentence; printing it a + // second time in red is the duplicate the device report caught. + assertNull( + "already said once by the info banner above", + walletFailureBanner(WALLET_NOT_OPEN_TEXT, openHintVisible = true, walletOpen = false), + ) + val alone = walletFailureBanner(WALLET_NOT_OPEN_TEXT, openHintVisible = false, walletOpen = false) + assertNotNull(alone) + assertEquals(WalletFailureTone.Info, alone!!.tone) + assertEquals("No wallet open", alone.title) + assertEquals(WALLET_NOT_OPEN_TEXT, alone.text) + assertNull( + "the state ended when a wallet was opened", + walletFailureBanner(WALLET_NOT_OPEN_TEXT, openHintVisible = false, walletOpen = true), + ) + } + + @Test + fun a_real_failure_still_paints_red() { + val refused = walletFailureText("wallet connect: Connection refused (os error 111)")!! + val banner = walletFailureBanner(refused, openHintVisible = true, walletOpen = false)!! + assertEquals("a refusal is still a failure", WalletFailureTone.Error, banner.tone) + assertEquals("Wallet error", banner.title) + assertEquals(refused, banner.text) + + val exited = walletFailureText("spawn monero-wallet-rpc: No such file or directory (os error 2)")!! + assertEquals(WalletFailureTone.Error, walletFailureBanner(exited, false, false)!!.tone) + + assertNull(walletFailureBanner(null, true, false)) + assertNull(walletFailureBanner(" ", true, false)) + } } diff --git a/android/app/src/test/java/com/siriusdevops/onionwire/ui/WalletManagerTest.kt b/android/app/src/test/java/com/siriusdevops/onionwire/ui/WalletManagerTest.kt index fac959d..aab4313 100644 --- a/android/app/src/test/java/com/siriusdevops/onionwire/ui/WalletManagerTest.kt +++ b/android/app/src/test/java/com/siriusdevops/onionwire/ui/WalletManagerTest.kt @@ -477,4 +477,27 @@ class WalletManagerTest { assertTrue(shouldReloadWalletReads("ready")) assertTrue(shouldReloadWalletReads(" Ready ")) } + + @Test + fun the_tui_not_configured_copy_is_mapped_and_never_rendered_verbatim() { + // `src/wallet.rs::NOT_CONFIGURED_MSG` is the desktop TUI's refusal. A + // phone has no F7 key and no ONIONWIRE_WALLET_RPC, so that sentence is + // the second dead end the device report caught: a passphrase was typed + // into Create, and the screen answered with a keyboard shortcut. + val tui = "wallet not configured — open F7 to set it up, or set ONIONWIRE_WALLET_RPC" + val shown = walletFailureText(tui) + assertEquals(WALLET_RPC_NOT_RUNNING_TEXT, shown) + assertFalse("no F7 reaches the screen", shown!!.contains("F7")) + assertFalse("no env var name either", shown.contains("ONIONWIRE_WALLET_RPC")) + assertTrue("the phone sentence says what to do", shown.contains("Start it on the node card")) + + // Each fragment alone is the same fact and is mapped too; case and + // spacing are not load-bearing. + assertEquals(WALLET_RPC_NOT_RUNNING_TEXT, walletFailureText("Open F7")) + assertEquals(WALLET_RPC_NOT_RUNNING_TEXT, walletFailureText("Wallet Not Configured")) + assertEquals(WALLET_RPC_NOT_RUNNING_TEXT, walletFailureText("set ONIONWIRE_WALLET_RPC")) + + // And it is idempotent: the sticky error card re-filters its own text. + assertEquals(WALLET_RPC_NOT_RUNNING_TEXT, walletFailureText(shown)) + } } diff --git a/crates/onionwire-sdk/Cargo.lock b/crates/onionwire-sdk/Cargo.lock index 7f178c8..c327104 100644 --- a/crates/onionwire-sdk/Cargo.lock +++ b/crates/onionwire-sdk/Cargo.lock @@ -175,9 +175,9 @@ checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" [[package]] name = "arti-client" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aafcbc506657d886b27ef2d8e06a99edd9014b28130c798a3013935b46983097" +checksum = "47b3624d7bee91f821b04fe5412f561671e5500677781d3f070a2fa101a128b0" dependencies = [ "async-trait", "cfg-if", @@ -193,10 +193,9 @@ dependencies = [ "libc", "once_cell", "postage", - "rand 0.10.2", + "rand 0.10.4", "safelog", "serde", - "tempfile", "thiserror 2.0.20", "time", "tor-async-utils", @@ -310,7 +309,7 @@ dependencies = [ "proc-macro2", "quote", "syn 2.0.119", - "synstructure", + "synstructure 0.13.2", ] [[package]] @@ -324,12 +323,6 @@ dependencies = [ "syn 2.0.119", ] -[[package]] -name = "assert_matches" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" - [[package]] name = "async-compat" version = "0.2.6" @@ -345,9 +338,9 @@ dependencies = [ [[package]] name = "async-compression" -version = "0.4.46" +version = "0.4.54" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f10dafd0c8d2e51ae9a748805777613ed0bbe17bf586b76c8311f45c020a32f" +checksum = "0c31224bd2c09447484a1143f2fc1d871eb405789859c8e5470a3e7f95f40a18" dependencies = [ "compression-codecs", "compression-core", @@ -715,9 +708,9 @@ dependencies = [ [[package]] name = "caret" -version = "0.10.1" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23a6f83e57018d15e7615a6f8e5e2c6b6b0226e24a1c562cd705f855a2bc751a" +checksum = "d3f1a1c7fa296eb2367469e6226783ed07cb778d75d13f7b6ee3f1de593ba7f4" [[package]] name = "cargo-platform" @@ -766,9 +759,9 @@ dependencies = [ [[package]] name = "cfg-if" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" [[package]] name = "cfg_aliases" @@ -903,9 +896,9 @@ checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a" [[package]] name = "coarsetime" -version = "0.1.37" +version = "0.1.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e58eb270476aa4fc7843849f8a35063e8743b4dbcdf6dd0f8ea0886980c204c2" +checksum = "eae63702c5627c75addbfb1ea9d1b3842205a6ffd43e4cce884a2a9eb1828fd7" dependencies = [ "libc", "wasix", @@ -934,9 +927,9 @@ checksum = "ea0095f6103c2a8b44acd6fd15960c801dafebf02e21940360833e0673f48ba7" [[package]] name = "compression-codecs" -version = "0.4.41" +version = "0.4.49" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58a6d0db8759036a783bc7c3f7a07f8cef3bf9470eb1db3bc86e8bcd1c5d0fe8" +checksum = "f938fc0d88fbe2c8d6f0e1ba96ba1165d89ff698e98468cd019d92cff2ecd367" dependencies = [ "compression-core", "flate2", @@ -947,9 +940,9 @@ dependencies = [ [[package]] name = "compression-core" -version = "0.4.33" +version = "0.4.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e8ccc4ea9f6acc32d102c0f6d471d11d913ad15f20c04de743374861fa1d414" +checksum = "2ebdda89edc534bf8d5dd2857562633b6495557e5846552ade994b99ed13c36a" [[package]] name = "const-oid" @@ -1322,7 +1315,7 @@ dependencies = [ "cuprate-cryptonight", "cuprate-helper", "cuprate-types", - "curve25519-dalek", + "curve25519-dalek 4.1.3", "hex", "hex-literal 1.1.0", "indexmap 2.14.2", @@ -1424,8 +1417,8 @@ source = "git+https://github.com/Cuprate/cuprate?rev=4f8fcd1bf468f566fcd89c460d5 dependencies = [ "chrono", "cuprate-constants", - "curve25519-dalek", - "dirs", + "curve25519-dalek 4.1.3", + "dirs 6.0.0", "futures", "libc", "monero-oxide", @@ -1689,7 +1682,7 @@ dependencies = [ "thiserror 2.0.20", "tokio", "tokio-util", - "toml 1.1.6+spec-1.1.0", + "toml 1.2.3+spec-1.1.0", "toml_edit 0.25.14+spec-1.1.0", "tower", "tower-http", @@ -1708,7 +1701,24 @@ dependencies = [ "cpufeatures 0.2.17", "curve25519-dalek-derive", "digest 0.10.7", - "fiat-crypto", + "fiat-crypto 0.2.9", + "rustc_version", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek" +version = "5.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94c1aa5a9b7626ed65ac0cf5ea9d4f1547af89017fbac20bd4de40022fff516f" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.1", + "curve25519-dalek-derive", + "digest 0.11.3", + "fiat-crypto 0.3.0", + "rand_core 0.10.1", "rustc_version", "subtle", "zeroize", @@ -1925,9 +1935,9 @@ dependencies = [ [[package]] name = "derive-deftly" -version = "1.11.5" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98e02cd118058400797c74550dca132b57cf2e6af0e9ea0672a83eb186fd655e" +checksum = "724949bdda5310709ca2f97bf69c2b01e3362f44fef1fb47913445db4c1debb5" dependencies = [ "derive-deftly-macros", "heck", @@ -1935,9 +1945,9 @@ dependencies = [ [[package]] name = "derive-deftly-macros" -version = "1.11.5" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba91f619216e76a5eb2515783f7ec2e271938b51aadac592f4930517f4626863" +checksum = "17933e749f2502cfcd1c27519292fbbea22e8fc64ce680e863f855e8cd8cce23" dependencies = [ "heck", "indexmap 2.14.2", @@ -2024,8 +2034,10 @@ version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" dependencies = [ + "block-buffer 0.12.1", "const-oid 0.10.2", "crypto-common 0.2.2", + "ctutils", ] [[package]] @@ -2046,6 +2058,15 @@ dependencies = [ "dirs-sys", ] +[[package]] +name = "dirs" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d57d423b3c82e89b9a24ca3091fee61f456a26edbd28d26c65906f4bc1dcd8f" +dependencies = [ + "dirs-sys", +] + [[package]] name = "dirs-sys" version = "0.5.0" @@ -2100,7 +2121,7 @@ dependencies = [ "digest 0.10.7", "elliptic-curve", "rfc6979", - "signature", + "signature 2.2.0", "spki 0.7.3", ] @@ -2111,7 +2132,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" dependencies = [ "pkcs8 0.10.2", - "signature", + "signature 2.2.0", +] + +[[package]] +name = "ed25519" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29fcf32e6c73d1079f83ab4d782de2d81620346a5f38c6237a86a22f8368980a" +dependencies = [ + "pkcs8 0.11.0", + "signature 3.0.0", ] [[package]] @@ -2120,12 +2151,29 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9" dependencies = [ - "curve25519-dalek", - "ed25519", - "merlin", + "curve25519-dalek 4.1.3", + "ed25519 2.2.3", "rand_core 0.6.4", "serde", - "sha2", + "sha2 0.10.9", + "subtle", + "zeroize", +] + +[[package]] +name = "ed25519-dalek" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ebaa1a2bf1290ab3bfe5a7b771d050ebffab2711c19a81691c683a5144a25de" +dependencies = [ + "curve25519-dalek 5.1.0", + "ed25519 3.0.0", + "keccak 0.2.2", + "rand_core 0.10.1", + "serde", + "sha2 0.11.3", + "signature 3.0.0", + "strobe-rs", "subtle", "zeroize", ] @@ -2284,6 +2332,12 @@ version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" +[[package]] +name = "fiat-crypto" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64cd1e32ddd350061ae6edb1b082d7c54915b5c672c389143b9a63403a109f24" + [[package]] name = "figment" version = "0.10.19" @@ -2394,12 +2448,12 @@ dependencies = [ [[package]] name = "fs-mistrust" -version = "0.15.1" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b2c81a5a0e7d67644309a15694eb7f414a4d6556c64c1ece1e5969aa609c8a9" +checksum = "1628799db8c034e020e48ee393c271f423aa749fde1c3195bd3bbc8bb5cfcbe8" dependencies = [ "derive_builder_fork_arti", - "dirs", + "dirs 7.0.0", "extend", "libc", "pwd-grp", @@ -2411,9 +2465,9 @@ dependencies = [ [[package]] name = "fslock-guard" -version = "0.8.2" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d10ce5036d49f8add4a11d08bc1b1afb0e3cefdd88778ab87fb4202d47b765e1" +checksum = "ba455a614874a0b1814cf3e30f8a6d4c8858e2bc38569bd293e3ff8cbad49032" dependencies = [ "libc", "thiserror 2.0.20", @@ -2738,7 +2792,16 @@ version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" dependencies = [ - "hmac", + "hmac 0.12.1", +] + +[[package]] +name = "hkdf" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4aaa26c720c68b866f2c96ef5c1264b3e6f473fe5d4ce61cd44bbe913e553018" +dependencies = [ + "hmac 0.13.0", ] [[package]] @@ -2750,6 +2813,15 @@ dependencies = [ "digest 0.10.7", ] +[[package]] +name = "hmac" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6303bc9732ae41b04cb554b844a762b4115a61bfaa81e3e83050991eeb56863f" +dependencies = [ + "digest 0.11.3", +] + [[package]] name = "hostname-validator" version = "1.1.1" @@ -3102,9 +3174,9 @@ dependencies = [ [[package]] name = "inventory" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4f0c30c76f2f4ccee3fe55a2435f691ca00c0e4bd87abe4f4a851b1d4dac39b" +checksum = "6928282826c822ad91bf1c9a1cb90a30ba1c26770749929b4656cd6be829cd7c" dependencies = [ "rustversion", ] @@ -3166,9 +3238,25 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "668b7183bd07af9a4885f5c35b0cc5c83c4607a913c16b7e17291832910d2dcc" dependencies = [ "defmt", - "jiff-core", - "jiff-static", - "jiff-tzdb-platform", + "jiff-core 0.1.0", + "jiff-static 0.2.35", + "jiff-tzdb-platform 0.1.3", + "log", + "portable-atomic", + "portable-atomic-util", + "serde_core", + "windows-link", +] + +[[package]] +name = "jiff" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "379ed44bd4e16d3926160e2b3a78b79ca0952ef5c037f124f554842ba272ef92" +dependencies = [ + "jiff-core 1.1.0", + "jiff-static 1.1.0", + "jiff-tzdb-platform 1.0.0", "log", "portable-atomic", "portable-atomic-util", @@ -3185,31 +3273,67 @@ dependencies = [ "defmt", ] +[[package]] +name = "jiff-core" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0df46fc314b4f458aee614afcd8676ed6cb3637413aa359d47d2646cbc038b79" +dependencies = [ + "log", +] + [[package]] name = "jiff-static" version = "0.2.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3a69dcb3a21cfb32ce1cd056169337ca284af0766dd766e7878819b251a49204" dependencies = [ - "jiff-core", + "jiff-core 0.1.0", "proc-macro2", "quote", "syn 2.0.119", ] +[[package]] +name = "jiff-static" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b729c549d3efb5855b3c80b0ee8ee1850d56330a127382fe2760965741c1f3" +dependencies = [ + "jiff-core 1.1.0", + "proc-macro2", + "quote", + "syn 3.0.5", +] + [[package]] name = "jiff-tzdb" version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "142bd39932ad231f10513df9ab62661fead8719872150b7ad02a2df79f4e141e" +[[package]] +name = "jiff-tzdb" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12e71a1b68a875a44a33bb7a1dd84392cb77145a3367a552a3cfe6a4f5cf3afc" + [[package]] name = "jiff-tzdb-platform" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "875a5a69ac2bab1a891711cf5eccbec1ce0341ea805560dcd90b7a2e925132e8" dependencies = [ - "jiff-tzdb", + "jiff-tzdb 0.1.8", +] + +[[package]] +name = "jiff-tzdb-platform" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc65b284afcfa8f6cf189c7274c805505314a7ab975c60e1f548bff56525420e" +dependencies = [ + "jiff-tzdb 1.0.0", ] [[package]] @@ -3235,12 +3359,13 @@ dependencies = [ [[package]] name = "k12" -version = "0.3.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4dc5fdb62af2f520116927304f15d25b3c2667b4817b90efdc045194c912c54" +checksum = "38a8cc72399dffa4a445bc5f5a84d4af4d441c76604231bc52e9c529c1d47693" dependencies = [ - "digest 0.10.7", - "sha3 0.10.9", + "digest 0.11.3", + "keccak 0.2.2", + "sponge-cursor", ] [[package]] @@ -3271,6 +3396,7 @@ checksum = "d8f198d1db720e4940b5a493201d199d9f24f568f8f746bd13706243a2f71598" dependencies = [ "cfg-if", "cpufeatures 0.3.1", + "hybrid-array", ] [[package]] @@ -3462,15 +3588,6 @@ dependencies = [ "twox-hash", ] -[[package]] -name = "matchers" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" -dependencies = [ - "regex-automata", -] - [[package]] name = "matchit" version = "0.8.4" @@ -3495,23 +3612,21 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" [[package]] name = "memmap2" -version = "0.9.11" +version = "0.9.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1219ed1b7f229ee7104d281dd01d6802fe28bb6e95d292942c4daacdeb798c0" +checksum = "6b0ca1155a9ecc25aa12e8313a119f32edf0255fea2f44839c4ac0a12b2ac157" dependencies = [ "libc", ] [[package]] -name = "merlin" -version = "3.0.0" +name = "metrics" +version = "0.24.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" +checksum = "89550ee9f79e88fef3119de263694973a8adb26c21d75322164fb8c493039fe2" dependencies = [ - "byteorder", - "keccak 0.1.6", - "rand_core 0.6.4", - "zeroize", + "portable-atomic", + "rapidhash", ] [[package]] @@ -3603,7 +3718,7 @@ name = "monero-borromean" version = "0.1.0" source = "git+https://github.com/monero-oxide/monero-oxide.git?rev=946ec5f#946ec5f00ff071b129758ee8cba5528539fccfe4" dependencies = [ - "curve25519-dalek", + "curve25519-dalek 4.1.3", "monero-ed25519", "monero-io", "std-shims", @@ -3615,7 +3730,7 @@ name = "monero-bulletproofs" version = "0.1.0" source = "git+https://github.com/monero-oxide/monero-oxide.git?rev=946ec5f#946ec5f00ff071b129758ee8cba5528539fccfe4" dependencies = [ - "curve25519-dalek", + "curve25519-dalek 4.1.3", "monero-bulletproofs-generators", "monero-ed25519", "monero-io", @@ -3631,7 +3746,7 @@ name = "monero-bulletproofs-generators" version = "0.1.0" source = "git+https://github.com/monero-oxide/monero-oxide.git?rev=946ec5f#946ec5f00ff071b129758ee8cba5528539fccfe4" dependencies = [ - "curve25519-dalek", + "curve25519-dalek 4.1.3", "monero-ed25519", "monero-io", "monero-primitives", @@ -3643,7 +3758,7 @@ name = "monero-clsag" version = "0.1.0" source = "git+https://github.com/monero-oxide/monero-oxide.git?rev=946ec5f#946ec5f00ff071b129758ee8cba5528539fccfe4" dependencies = [ - "curve25519-dalek", + "curve25519-dalek 4.1.3", "group", "monero-ed25519", "monero-io", @@ -3661,7 +3776,7 @@ version = "0.1.0" source = "git+https://github.com/monero-oxide/monero-oxide.git?rev=946ec5f#946ec5f00ff071b129758ee8cba5528539fccfe4" dependencies = [ "crypto-bigint 0.5.5", - "curve25519-dalek", + "curve25519-dalek 4.1.3", "monero-io", "rand_core 0.6.4", "sha3 0.10.9", @@ -3683,7 +3798,7 @@ name = "monero-mlsag" version = "0.1.0" source = "git+https://github.com/monero-oxide/monero-oxide.git?rev=946ec5f#946ec5f00ff071b129758ee8cba5528539fccfe4" dependencies = [ - "curve25519-dalek", + "curve25519-dalek 4.1.3", "monero-ed25519", "monero-io", "std-shims", @@ -3696,7 +3811,7 @@ name = "monero-oxide" version = "0.1.4-alpha" source = "git+https://github.com/monero-oxide/monero-oxide.git?rev=946ec5f#946ec5f00ff071b129758ee8cba5528539fccfe4" dependencies = [ - "curve25519-dalek", + "curve25519-dalek 4.1.3", "hex-literal 1.1.0", "monero-borromean", "monero-bulletproofs", @@ -3896,9 +4011,9 @@ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" [[package]] name = "oneshot-fused-workaround" -version = "0.7.1" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56892f7dcba21c5eb4181b8de221620855805891ee55ef960aad7cac3b5d88b2" +checksum = "f851210432a7498257e0f1675c25b95131308f157b87821b70df756b01aa1dbc" dependencies = [ "futures", ] @@ -3911,10 +4026,10 @@ dependencies = [ "arti-client", "chacha20poly1305", "cuprated", - "ed25519-dalek", + "ed25519-dalek 2.2.0", "futures", - "hkdf", - "hmac", + "hkdf 0.12.4", + "hmac 0.12.1", "md-5", "ml-kem", "qrcode", @@ -3925,7 +4040,7 @@ dependencies = [ "rustls", "safelog", "serde_json", - "sha2", + "sha2 0.10.9", "sha3 0.10.9", "snow", "tokio", @@ -3933,7 +4048,7 @@ dependencies = [ "tor-cell", "tor-hsservice", "tor-rtcompat", - "x25519-dalek", + "x25519-dalek 2.0.1", "zeroize", ] @@ -4010,7 +4125,7 @@ dependencies = [ "ecdsa", "elliptic-curve", "primeorder", - "sha2", + "sha2 0.10.9", ] [[package]] @@ -4022,7 +4137,7 @@ dependencies = [ "ecdsa", "elliptic-curve", "primeorder", - "sha2", + "sha2 0.10.9", ] [[package]] @@ -4036,7 +4151,7 @@ dependencies = [ "elliptic-curve", "primeorder", "rand_core 0.6.4", - "sha2", + "sha2 0.10.9", ] [[package]] @@ -4342,17 +4457,6 @@ dependencies = [ "elliptic-curve", ] -[[package]] -name = "priority-queue" -version = "2.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93980406f12d9f8140ed5abe7155acb10bb1e69ea55c88960b9c2f117445ef96" -dependencies = [ - "equivalent", - "indexmap 2.14.2", - "serde", -] - [[package]] name = "proc-macro-crate" version = "3.5.0" @@ -4485,9 +4589,9 @@ dependencies = [ [[package]] name = "rand" -version = "0.10.2" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80" +checksum = "8f6fa277c67e6ea590466f04c3fe82cb509f0864fe470643e5570de9514a9b11" dependencies = [ "chacha20 0.10.2", "getrandom 0.4.3", @@ -4596,6 +4700,15 @@ version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a611d15b50743feb4c76b7d03edcb0e64f399c26961e4efe6975bc398be6aa3d" +[[package]] +name = "rapidhash" +version = "4.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5da7e78a036ce858e8d55b7e7dc8ba3a88b78350fd2155d3591bbd966b58589e" +dependencies = [ + "rustversion", +] + [[package]] name = "ratatui" version = "0.30.2" @@ -4772,9 +4885,9 @@ dependencies = [ [[package]] name = "retry-error" -version = "0.13.1" +version = "0.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d350ad359aca3414f7261cdcc763e37ccc9fa56fe40ca30a9758c28a295bcad0" +checksum = "67f26b5caa81adf9b23ab230ce975acbf46aec461bc357f9fb51cfd4f2bfaebf" dependencies = [ "humantime", "web-time", @@ -4786,7 +4899,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" dependencies = [ - "hmac", + "hmac 0.12.1", "subtle", ] @@ -4829,8 +4942,8 @@ dependencies = [ "pkcs1", "pkcs8 0.10.2", "rand_core 0.6.4", - "sha2", - "signature", + "sha2 0.10.9", + "signature 2.2.0", "spki 0.7.3", "subtle", "zeroize", @@ -4900,9 +5013,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.44" +version = "0.23.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6725596c3f2c3a0aef021139e145d4eafe314a6623e4680ca83852b2c67ab2ba" +checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf" dependencies = [ "log", "once_cell", @@ -4924,9 +5037,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.103.15" +version = "0.103.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" +checksum = "e3a0760a887c14823fca5a1c970b01d47c328c696c0c64829d1df50e8f853fd5" dependencies = [ "ring", "rustls-pki-types", @@ -4959,9 +5072,9 @@ checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" [[package]] name = "safelog" -version = "0.9.1" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73ef1d6e273fc8ce5cc1376cf498c06d23b786e80e4a7679a643bb0a838b0029" +checksum = "0c090399e87e5eaec9515d6b859fdb7ec417c269c2e7564c169a8963df75a2ce" dependencies = [ "derive_more", "educe", @@ -4990,9 +5103,12 @@ dependencies = [ [[package]] name = "saturating-time" -version = "0.4.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "802bdbfcca9a239cb46eeaaedea507e37bb13ba1a673762d2e2ef7a9dac63144" +checksum = "f950f7f265dc6fc082387eccf710b1adbf22d75f17c4ee0db4648c9b6959b50d" +dependencies = [ + "web-time-compat", +] [[package]] name = "schemars" @@ -5142,9 +5258,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.151" +version = "1.0.154" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" dependencies = [ "itoa", "memchr", @@ -5175,18 +5291,18 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "1.1.1" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26" +checksum = "9c187e0a369471c550af028cba56d4f4fa2a489ad28151ae95a4d340a2a8b782" dependencies = [ "serde_core", ] [[package]] name = "serde_with" -version = "3.23.0" +version = "3.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "935177bb8c0cd8ca1a4e6d1a2ac8988bea69cab4f9d3a31311e012ad27868ea4" +checksum = "56cb1ca7c93ae63d6439b5250f6b6b040f7e121f32e5dd2f5d523dd4149b3204" dependencies = [ "base64", "bs58", @@ -5194,7 +5310,8 @@ dependencies = [ "hex", "indexmap 1.9.3", "indexmap 2.14.2", - "jiff", + "jiff 0.2.35", + "jiff 1.1.0", "schemars 0.9.0", "schemars 1.2.2", "serde_core", @@ -5205,9 +5322,9 @@ dependencies = [ [[package]] name = "serde_with_macros" -version = "3.23.0" +version = "3.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d607aa01a3cb0ad757d6fd216136910db3c97b102fe686585689615a02dbcdc" +checksum = "cff15a7c864bbec77d9586ca6822bc7c369bdf19e9243134a62b0b51ce26b31f" dependencies = [ "darling 0.24.1", "proc-macro2", @@ -5228,13 +5345,13 @@ dependencies = [ [[package]] name = "sha1" -version = "0.10.7" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8" +checksum = "aacc4cc499359472b4abe1bf11d0b12e688af9a805fa5e3016f9a386dc2d0214" dependencies = [ "cfg-if", - "cpufeatures 0.2.17", - "digest 0.10.7", + "cpufeatures 0.3.1", + "digest 0.11.3", ] [[package]] @@ -5248,6 +5365,17 @@ dependencies = [ "digest 0.10.7", ] +[[package]] +name = "sha2" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "820083d430c52864bf834423fc988cbcf61685d6f9d22a765a64e3f6cfe3521c" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.1", + "digest 0.11.3", +] + [[package]] name = "sha3" version = "0.10.9" @@ -5296,7 +5424,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32824fab5e16e6c4d86dc1ba84489390419a39f97699852b66480bb87d297ed8" dependencies = [ "bstr", - "dirs", + "dirs 6.0.0", "os_str_bytes", ] @@ -5347,6 +5475,15 @@ dependencies = [ "rand_core 0.6.4", ] +[[package]] +name = "signature" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28d567dcbaf0049cb8ac2608a76cd95ff9e4412e1899d389ee400918ca7537f5" +dependencies = [ + "rand_core 0.10.1", +] + [[package]] name = "simd-adler32" version = "0.3.10" @@ -5387,15 +5524,14 @@ dependencies = [ [[package]] name = "slotmap-careful" -version = "0.8.1" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba7bcbd01d9b495f4509e74f660ebaf3315219b2f8a81753667ee7d6d8a199ac" +checksum = "0e13aa7333b92ad3a6d3136abaa7fb5d8c19cc121441fcb435f6947d6ef2f8f7" dependencies = [ "paste", "serde", "slotmap", "thiserror 2.0.20", - "void", ] [[package]] @@ -5419,11 +5555,11 @@ dependencies = [ "aes-gcm", "blake2", "chacha20poly1305", - "curve25519-dalek", + "curve25519-dalek 4.1.3", "getrandom 0.3.4", "ring", "rustc_version", - "sha2", + "sha2 0.10.9", "subtle", ] @@ -5496,7 +5632,7 @@ checksum = "e0cf03c3a7ea88451ff83a129a79451fd9891d44fc76c25e916a11848b81814c" dependencies = [ "base64ct", "pem-rfc7468", - "sha2", + "sha2 0.10.9", ] [[package]] @@ -5512,8 +5648,8 @@ dependencies = [ "rand_core 0.6.4", "rsa", "sec1", - "sha2", - "signature", + "sha2 0.10.9", + "signature 2.2.0", "ssh-cipher-fork-arti", "ssh-encoding-fork-arti", "subtle", @@ -5543,6 +5679,19 @@ dependencies = [ "spin 0.10.1", ] +[[package]] +name = "strobe-rs" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83561175f0a962dea437885589480d216d8741debf853e0d36edd526344fd273" +dependencies = [ + "bitflags 2.13.2", + "byteorder", + "keccak 0.2.2", + "subtle", + "zeroize", +] + [[package]] name = "strsim" version = "0.10.0" @@ -5638,6 +5787,17 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "synstructure" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.5", +] + [[package]] name = "sysinfo" version = "0.38.4" @@ -5792,9 +5952,9 @@ dependencies = [ [[package]] name = "tinystr" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643" +checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a" dependencies = [ "displaydoc", "serde_core", @@ -5818,9 +5978,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.53.1" +version = "1.54.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" dependencies = [ "bytes", "libc", @@ -5869,9 +6029,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.19" +version = "0.7.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52" +checksum = "e464cf451ba96ebfc6f9b6542f17ee8b8956e33f1e40d9690624e59d7a7f8a4b" dependencies = [ "bytes", "futures-core", @@ -5899,14 +6059,14 @@ dependencies = [ [[package]] name = "toml" -version = "1.1.6+spec-1.1.0" +version = "1.2.3+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "920602543f0911ab71da12c50d59701da54c196d1a2bf5cb4b75667f137a406a" +checksum = "26b1f26e9485c1fa43ee89fe76e9f3fb9e2e52bb227f8594b4d687496b83d073" dependencies = [ "indexmap 2.14.2", "serde_core", - "serde_spanned 1.1.1", - "toml_datetime 1.1.1+spec-1.1.0", + "serde_spanned 1.1.3", + "toml_datetime 1.1.3+spec-1.1.0", "toml_parser", "toml_writer", "winnow 1.0.4", @@ -5923,9 +6083,9 @@ dependencies = [ [[package]] name = "toml_datetime" -version = "1.1.1+spec-1.1.0" +version = "1.1.3+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7" +checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49" dependencies = [ "serde_core", ] @@ -5951,7 +6111,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2195eec204e2764644a4ea619704f9fbe5e0673038eded55ad9956f24fca0cc" dependencies = [ "indexmap 2.14.2", - "toml_datetime 1.1.1+spec-1.1.0", + "toml_datetime 1.1.3+spec-1.1.0", "toml_parser", "toml_writer", "winnow 1.0.4", @@ -5959,9 +6119,9 @@ dependencies = [ [[package]] name = "toml_parser" -version = "1.1.3+spec-1.1.0" +version = "1.1.7+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56" +checksum = "0bb28d6e049a9766c3bd91a8326e6179f5b132dec87906bb97018ef7a2f3431a" dependencies = [ "winnow 1.0.4", ] @@ -5974,15 +6134,15 @@ checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801" [[package]] name = "toml_writer" -version = "1.1.2+spec-1.1.0" +version = "1.2.0+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2" +checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a" [[package]] name = "tor-async-utils" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31d9f28de36ed7646f0f03835ce2e306e2c5df8a1784a2cac27bd549cdc07599" +checksum = "8ea51881be51a4dff308071d7cf6489445fd658e821a8bf35c47a4830effd1ab" dependencies = [ "cfg-if", "derive-deftly", @@ -6006,9 +6166,9 @@ dependencies = [ [[package]] name = "tor-basic-utils" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a2bd42110ae0faea1d446b35899aa5c3591cd31a94b593aa9264f00baba41da" +checksum = "235993fcf72e09e597e6b609d52b4cfc2f28bfa8ca827ed304127889639d5776" dependencies = [ "derive-deftly", "derive_more", @@ -6019,7 +6179,7 @@ dependencies = [ "itertools 0.15.0", "libc", "paste", - "rand 0.10.2", + "rand 0.10.4", "rand_chacha 0.10.0", "serde", "slab", @@ -6032,13 +6192,13 @@ dependencies = [ [[package]] name = "tor-bytes" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73de2ba54a125c27a440616f2d806a171bcb4e30013de166c7dc0a79bde44ab4" +checksum = "feb3c0504ae2bca19b92e55c869fe58f68688505737ce2ddae85b60b9806ed4c" dependencies = [ "bytes", "derive-deftly", - "digest 0.10.7", + "digest 0.11.3", "educe", "getrandom 0.4.3", "safelog", @@ -6050,9 +6210,9 @@ dependencies = [ [[package]] name = "tor-cell" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "118f2b6a56605bedd077003ee5678fda215965d550dd0aef21ce8e10dd082750" +checksum = "3a6a814400b9bd2a8d07ee89057db816eed53b2b2719066f77630698f0bd2cb0" dependencies = [ "amplify", "bitflags 2.13.2", @@ -6063,7 +6223,7 @@ dependencies = [ "educe", "itertools 0.15.0", "paste", - "rand 0.10.2", + "rand 0.10.4", "smallvec", "thiserror 2.0.20", "tor-basic-utils", @@ -6081,15 +6241,14 @@ dependencies = [ [[package]] name = "tor-cert" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2cec6ae3abafc382e126a26e74f000bffbbf2c9b1a8c9ec26bb84463f0120b4" +checksum = "68df0747b5d218cfb2c481b2a267bbdbf89dda2849911630e966eed3dc630f7b" dependencies = [ "caret", "derive_builder_fork_arti", "derive_more", - "digest 0.10.7", - "saturating-time", + "digest 0.11.3", "thiserror 2.0.20", "tor-bytes", "tor-checkable", @@ -6100,9 +6259,9 @@ dependencies = [ [[package]] name = "tor-chanmgr" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6cef673b170f10790ff81d2f190e0a8150e5c9683c2c8f4c09652a6954c0e5ab" +checksum = "66b5dec2bf27e75dd65bfe9289f24eee230c49ac4a65f85f0ead3b3b3c19f51d" dependencies = [ "async-trait", "base64ct", @@ -6116,7 +6275,7 @@ dependencies = [ "oneshot-fused-workaround", "percent-encoding", "postage", - "rand 0.10.2", + "rand 0.10.4", "safelog", "serde", "serde_with", @@ -6143,13 +6302,13 @@ dependencies = [ [[package]] name = "tor-checkable" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3872a5bda49647ad4c4a822c58774995ad3acd02327f1cabe6cfc019d714535" +checksum = "bee5237cfbec5e4e7860b6579932072e2dd3dfa91a950a3d2c4c8c253f405c4a" dependencies = [ "humantime", "itertools 0.15.0", - "signature", + "signature 3.0.0", "thiserror 2.0.20", "tor-llcrypto", "web-time-compat", @@ -6157,9 +6316,9 @@ dependencies = [ [[package]] name = "tor-circmgr" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cf1eb6c2e3184c9e51c746df81f1a890ba7b663ac418debe2dac3756d840c8a" +checksum = "9bead875b0e3876110dbfa584ea65af47ed44ebc7ffebb32c460723837aa4843" dependencies = [ "amplify", "async-trait", @@ -6176,7 +6335,7 @@ dependencies = [ "once_cell", "oneshot-fused-workaround", "pin-project", - "rand 0.10.2", + "rand 0.10.4", "retry-error", "safelog", "serde", @@ -6207,9 +6366,9 @@ dependencies = [ [[package]] name = "tor-config" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd8ca5684100c9223590c11685f3f39c4e4c0037c65daddc26927b3ae4cc893d" +checksum = "f9788a9af2a0303e4c05a9bdbf08efbba485c4e92978f140713bc5e201f14580" dependencies = [ "amplify", "cfg-if", @@ -6232,7 +6391,7 @@ dependencies = [ "serde_ignored", "strum", "thiserror 2.0.20", - "toml 1.1.6+spec-1.1.0", + "toml 1.2.3+spec-1.1.0", "tor-basic-utils", "tor-error", "tor-rtcompat", @@ -6242,9 +6401,9 @@ dependencies = [ [[package]] name = "tor-config-path" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbed06099bacbdbb1d91cfff1032863896d6097c33eece067ab20756e4a6fa2b" +checksum = "83d165d5b36b7518e8cf0a51a9ed831019cf9d02afd88b408f2ca8d922710565" dependencies = [ "directories", "serde", @@ -6256,12 +6415,12 @@ dependencies = [ [[package]] name = "tor-consdiff" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9760d0051159a257b1d0065615ad6bc023da4e178d41ff5640222a29852de848" +checksum = "543cd2e0796c7959fe89a2c264ea09ebbb0d1bb70ce4870a2b394ee8d099bbea" dependencies = [ "derive_more", - "digest 0.10.7", + "digest 0.11.3", "hex", "imara-diff", "static_assertions", @@ -6273,9 +6432,9 @@ dependencies = [ [[package]] name = "tor-dirclient" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "403a79a0d00de6c78f15773a284e790459cff6983449e8578490e6b5dfb2afcd" +checksum = "4d683861c37ff8c0c522c5cdfed94a8f43d8c07fc9ae6ce3622ca29ec1b76db2" dependencies = [ "async-compression", "base64ct", @@ -6286,7 +6445,6 @@ dependencies = [ "httparse", "httpdate", "itertools 0.15.0", - "memchr", "thiserror 2.0.20", "tor-circmgr", "tor-error", @@ -6302,9 +6460,9 @@ dependencies = [ [[package]] name = "tor-dircommon" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd5cd2a4f641ecb007cc50914bb1b46128de0975aba08baa56497c8e03c71c71" +checksum = "3c9d4239fe25e4797edc7cf7b6efb4935bcec4552d7fe1ed1b61a30b165736b6" dependencies = [ "base64ct", "derive-deftly", @@ -6323,15 +6481,15 @@ dependencies = [ [[package]] name = "tor-dirmgr" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "805da4e947311285ce0782ab129df318701c2c08046c316086cb6bb3eb7a463e" +checksum = "ceed9e6665621160a7065f3bb56f7bbc77b85aff362f0950415dd882e8c22af9" dependencies = [ "async-trait", "base64ct", "derive_builder_fork_arti", "derive_more", - "digest 0.10.7", + "digest 0.11.3", "educe", "event-listener", "fs-mistrust", @@ -6345,13 +6503,14 @@ dependencies = [ "oneshot-fused-workaround", "paste", "postage", - "rand 0.10.2", + "rand 0.10.4", "rusqlite", "safelog", + "saturating-time", "scopeguard", "serde", "serde_json", - "signature", + "signature 3.0.0", "static_assertions", "strum", "thiserror 2.0.20", @@ -6380,9 +6539,9 @@ dependencies = [ [[package]] name = "tor-error" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f29e906f9f333a6e32e32afac9fb6712ac340191eb3292295b3337682b2dad" +checksum = "1caef18eb269eab70a6244cbfc003e92c8a28c4017fa5f7cb17be718787f151c" dependencies = [ "derive_more", "futures", @@ -6398,9 +6557,9 @@ dependencies = [ [[package]] name = "tor-general-addr" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b45ecd95dbf79070f9e477e1d84b22e47f03b2ab2f853abe31887daa9090cf0" +checksum = "09068bc76af4da4bbf0f17be95693c02253b12ed0aa2b4979bee786a1c7f24b5" dependencies = [ "derive_more", "thiserror 2.0.20", @@ -6409,9 +6568,9 @@ dependencies = [ [[package]] name = "tor-guardmgr" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e84beedbf276ce4ea170206b38ca01c995dbf1b9f678e9708f50e2e71dbfef4" +checksum = "3d430b1785b1e8f6569043b2ae2ca6c340ff5327f39ba3a19b7cfa9c99ad9a1d" dependencies = [ "amplify", "base64ct", @@ -6428,8 +6587,9 @@ dependencies = [ "oneshot-fused-workaround", "pin-project", "postage", - "rand 0.10.2", + "rand 0.10.4", "safelog", + "saturating-time", "serde", "strum", "thiserror 2.0.20", @@ -6453,9 +6613,9 @@ dependencies = [ [[package]] name = "tor-hsclient" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eba66be03b5eb899185e5b4416d8893fdb09a97b33db9e450042f06e2550f0e" +checksum = "aa940dbbff0c4c9323623acb4a49ac40fa227a6a3a07236918f4723db6ab7f9c" dependencies = [ "async-trait", "cfg-if", @@ -6467,7 +6627,7 @@ dependencies = [ "itertools 0.15.0", "oneshot-fused-workaround", "postage", - "rand 0.10.2", + "rand 0.10.4", "retry-error", "safelog", "slotmap-careful", @@ -6499,23 +6659,23 @@ dependencies = [ [[package]] name = "tor-hscrypto" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "118ff6a69bfa111b6e8d087ffb107ea9cbcd5d4469295cd7ada1b3cf19ba5a0f" +checksum = "a262916c319c77cd6dacb3c2aa1e1cdae1d2bf40dae18b1138cf9d544b927dc2" dependencies = [ "cipher 0.5.2", "data-encoding", "derive-deftly", "derive_more", - "digest 0.10.7", + "digest 0.11.3", "hex", "humantime", "itertools 0.15.0", "paste", - "rand 0.10.2", + "rand 0.10.4", "safelog", "serde", - "signature", + "signature 3.0.0", "subtle", "thiserror 2.0.20", "tor-basic-utils", @@ -6532,9 +6692,9 @@ dependencies = [ [[package]] name = "tor-hsservice" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d61a6b5217c14780f54fa1c8610514b1349c93f657304dec98bd8e3083e1a09f" +checksum = "0cfbd1aa7939e12a7dc56b6eefc1e44444de1f0bdf1a5fbd2eb897e4286733c9" dependencies = [ "amplify", "async-trait", @@ -6543,7 +6703,7 @@ dependencies = [ "derive-deftly", "derive_builder_fork_arti", "derive_more", - "digest 0.10.7", + "digest 0.11.3", "educe", "fs-mistrust", "futures", @@ -6555,7 +6715,7 @@ dependencies = [ "once_cell", "oneshot-fused-workaround", "postage", - "rand 0.10.2", + "rand 0.10.4", "rand_core 0.10.1", "retry-error", "safelog", @@ -6591,17 +6751,17 @@ dependencies = [ [[package]] name = "tor-key-forge" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1861b5eebab93515a0ab2401540f3d5a9fb376f1b1535d5793dcd697fb19f928" +checksum = "2788d37b8b723a83da9c3f22ee44530ffef4bf0fb13588bd88f44c90cdaa9bae" dependencies = [ "derive-deftly", "derive_more", "downcast-rs", "paste", - "rand 0.10.2", + "rand 0.10.4", "rsa", - "signature", + "signature 3.0.0", "ssh-key-fork-arti", "thiserror 2.0.20", "tor-bytes", @@ -6613,13 +6773,13 @@ dependencies = [ [[package]] name = "tor-keymgr" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3088a573dadebb34acacb30d686751e2a94d12ccf9d6647946ab6c6b4ad5a0e" +checksum = "119f0f26e6b2a11cd0868374a2287c786e97f22330cd8a8ff69cee96b08670cb" dependencies = [ "amplify", - "arrayvec", "cfg-if", + "data-encoding", "derive-deftly", "derive_builder_fork_arti", "derive_more", @@ -6630,10 +6790,10 @@ dependencies = [ "humantime", "inventory", "itertools 0.15.0", - "rand 0.10.2", + "rand 0.10.4", "safelog", "serde", - "signature", + "signature 3.0.0", "ssh-key-fork-arti", "thiserror 2.0.20", "tor-basic-utils", @@ -6654,9 +6814,9 @@ dependencies = [ [[package]] name = "tor-linkspec" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d8d3a2aaf3bb67110218b9ff1718cd7d6c7e62226e2fee1a18efa6aa19ff07c" +checksum = "7bb55ea69084a82b1f69709059ecfcfb3097adaad6d522dff99d8c52735cb899" dependencies = [ "base64ct", "by_address", @@ -6681,25 +6841,25 @@ dependencies = [ [[package]] name = "tor-llcrypto" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fee81755528eb34f8352ca6987d5f5c66ebba6af2e4618da4b527f17b0e912e" +checksum = "e1f114c13c14b0b2668304e2c9f102534ef95a2a004d1294ede969211c9bc60d" dependencies = [ "aes 0.9.3", "base64ct", "ctr 0.10.1", - "curve25519-dalek", + "curve25519-dalek 5.1.0", "der-parser", "derive-deftly", "derive_more", - "digest 0.10.7", - "ed25519-dalek", + "digest 0.11.3", + "ed25519-dalek 3.0.0", "educe", "getrandom 0.2.17", "getrandom 0.3.4", "getrandom 0.4.3", "hex", - "rand 0.10.2", + "rand 0.10.4", "rand_chacha 0.10.0", "rand_core 0.10.1", "rand_core 0.6.4", @@ -6710,23 +6870,24 @@ dependencies = [ "safelog", "serde", "sha1", - "sha2", - "sha3 0.10.9", - "signature", + "sha2 0.11.3", + "sha3 0.12.0", + "shake", + "signature 3.0.0", "subtle", "thiserror 2.0.20", "tor-error", "tor-memquota-cost", "visibility", - "x25519-dalek", + "x25519-dalek 3.0.0", "zeroize", ] [[package]] name = "tor-log-ratelim" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f8696c8ea9090059d91eea287628b5df0b3b4fba433179d893e348857857544" +checksum = "eea1296076775d399e0b750117c2e1cfba7fe9463add26f056b7c1397c9a3357" dependencies = [ "futures", "humantime", @@ -6740,9 +6901,9 @@ dependencies = [ [[package]] name = "tor-memquota" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03786604757846a5f936285eef397e3fc0ed455893dc5012ceafdf455ada0d8d" +checksum = "075e39b9ac84cd15c8249df1499c642e2fbea2a02cc7f146f19df31d771be0dc" dependencies = [ "cfg-if", "derive-deftly", @@ -6772,9 +6933,9 @@ dependencies = [ [[package]] name = "tor-memquota-cost" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86d6f7e1d842e6272e414e1f866dc688306b788d368df42e47c4995e040c679c" +checksum = "9c7fc75adc50ee789c2ef1633f95647aefc10942bb8a9e6294343dfb574c616c" dependencies = [ "derive-deftly", "itertools 0.15.0", @@ -6784,20 +6945,20 @@ dependencies = [ [[package]] name = "tor-netdir" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d3b84edfe732b77fb1420347902c06d92a1e6992e378ad19da6bdadcb8cd798" +checksum = "27eb00ecbb05d92471bf7ca386ac929ebca28e1034893045679645293bbddbd0" dependencies = [ "async-trait", "bitflags 2.13.2", "derive_more", - "digest 0.10.7", + "digest 0.11.3", "futures", "hex", "humantime", "itertools 0.15.0", "num_enum", - "rand 0.10.2", + "rand 0.10.4", "serde", "strum", "thiserror 2.0.20", @@ -6817,9 +6978,9 @@ dependencies = [ [[package]] name = "tor-netdoc" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b6abd7aaeb2bdbb3fbf760aab9aaa4e8e1a0f8b84d93a834df5a16882faa31e" +checksum = "a4f3fdfb2e47f82c6a15c11fb9bfac8bd4ec9e4bbff786fc23a8f8438436f040" dependencies = [ "amplify", "base64ct", @@ -6827,7 +6988,7 @@ dependencies = [ "derive-deftly", "derive_builder_fork_arti", "derive_more", - "digest 0.10.7", + "digest 0.11.3", "educe", "enumset", "extend", @@ -6840,12 +7001,12 @@ dependencies = [ "memchr", "paste", "phf", - "rand 0.10.2", + "rand 0.10.4", "rangemap", "saturating-time", "serde", "serde_with", - "signature", + "signature 3.0.0", "smallvec", "strum", "subtle", @@ -6870,9 +7031,9 @@ dependencies = [ [[package]] name = "tor-persist" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6f2a41d13a685e181361cfc3bdf25d319b96b56f5806594b6b8ed760d0099ed" +checksum = "48567a8e69f69edc6cfc3a7bfcd83e9ffb8c16617e81b6a4fbe11c391bd6356f" dependencies = [ "amplify", "derive-deftly", @@ -6890,7 +7051,6 @@ dependencies = [ "serde_json", "thiserror 2.0.20", "time", - "tor-async-utils", "tor-basic-utils", "tor-error", "tracing", @@ -6900,9 +7060,9 @@ dependencies = [ [[package]] name = "tor-proto" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ddf767335ae2e255025536d48384b92c6b4b8557e5b345be600e7ca2de1c880" +checksum = "05ee0a62b16f6bde3e1dee30a20e6c6755c5cd912e781c01b96c9d451886848d" dependencies = [ "aes 0.9.3", "amplify", @@ -6918,20 +7078,21 @@ dependencies = [ "derive-deftly", "derive_builder_fork_arti", "derive_more", - "digest 0.10.7", + "digest 0.11.3", "educe", "enum_dispatch", "futures", "futures-util", - "hkdf", - "hmac", + "hkdf 0.13.0", + "hmac 0.13.0", "itertools 0.15.0", + "metrics", "nonany", "oneshot-fused-workaround", "pin-project", "polyval 0.7.3", "postage", - "rand 0.10.2", + "rand 0.10.4", "rand_core 0.10.1", "safelog", "slotmap-careful", @@ -6957,7 +7118,6 @@ dependencies = [ "tor-memquota", "tor-protover", "tor-rtcompat", - "tor-rtmock", "tor-units", "tracing", "typenum", @@ -6969,12 +7129,14 @@ dependencies = [ [[package]] name = "tor-protover" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cab080a7551561bd56c0c2e3578b7114f0853700b96e43613fabc1fe06e5d885" +checksum = "ac0c7d7cc07222e72cc77231839d23259e4a1fdbbb02345c6c85d8ba142ad352" dependencies = [ "caret", "derive-deftly", + "derive_more", + "itertools 0.15.0", "paste", "serde_with", "thiserror 2.0.20", @@ -6984,11 +7146,11 @@ dependencies = [ [[package]] name = "tor-relay-selection" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07a5c22b7cfd59c40e38d4e111906793c0d65cf881e31efe3a83cac42887b1c9" +checksum = "91947cd895147e04a4600103608a3e935541d399e1a0b1b400788ceb7583b6c5" dependencies = [ - "rand 0.10.2", + "rand 0.10.4", "serde", "tor-basic-utils", "tor-linkspec", @@ -6998,9 +7160,9 @@ dependencies = [ [[package]] name = "tor-rtcompat" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "542f4e13054bbba8d764ee24178fd889f77afb59dca7c6ae0a370604118c20b6" +checksum = "6ecbaf82921338764c80b302abf5a75671400cc26d1daf3ee91826c653d5b9fc" dependencies = [ "amplify", "async-trait", @@ -7033,43 +7195,12 @@ dependencies = [ "zeroize", ] -[[package]] -name = "tor-rtmock" -version = "0.46.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04cb78b3a39634e46c1bc795f62fca17b4d8a9404fead18750592a03216e1da3" -dependencies = [ - "amplify", - "assert_matches", - "async-trait", - "derive-deftly", - "derive_more", - "educe", - "futures", - "humantime", - "itertools 0.15.0", - "oneshot-fused-workaround", - "pin-project", - "priority-queue", - "slotmap-careful", - "strum", - "thiserror 2.0.20", - "tor-error", - "tor-general-addr", - "tor-rtcompat", - "tracing", - "tracing-test", - "void", - "web-time-compat", -] - [[package]] name = "tor-socksproto" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f96e25e5d36b4aff59af40ec86f7ebb227a32b2f726ef1bc8cccf927f8fb31a" +checksum = "040951b4e279a0ac1b315a4845b69557f7d1ea1376fa911d482333b0693225a6" dependencies = [ - "amplify", "caret", "derive-deftly", "educe", @@ -7082,9 +7213,9 @@ dependencies = [ [[package]] name = "tor-units" -version = "0.46.0" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a562c031f6c1f9d22f7bbcfbe715840d0e2cfe5e59d1296cc26000c17130555" +checksum = "475566f8ee463e219980befbdc7b46397c1db5a8f54bd6ac75c41563712c5903" dependencies = [ "derive-deftly", "derive_more", @@ -7203,39 +7334,14 @@ version = "0.3.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" dependencies = [ - "matchers", "nu-ansi-term", - "once_cell", - "regex-automata", "sharded-slab", "smallvec", "thread_local", - "tracing", "tracing-core", "tracing-log", ] -[[package]] -name = "tracing-test" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19a4c448db514d4f24c5ddb9f73f2ee71bfb24c526cf0c570ba142d1119e0051" -dependencies = [ - "tracing-core", - "tracing-subscriber", - "tracing-test-macro", -] - -[[package]] -name = "tracing-test-macro" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad06847b7afb65c7866a36664b75c40b895e318cea4f71299f013fb22965329d" -dependencies = [ - "quote", - "syn 2.0.119", -] - [[package]] name = "twox-hash" version = "2.1.4" @@ -7343,7 +7449,7 @@ dependencies = [ "serde", "tempfile", "textwrap", - "toml 1.1.6+spec-1.1.0", + "toml 1.2.3+spec-1.1.0", "uniffi_internal_macros", "uniffi_meta", "uniffi_pipeline", @@ -7389,7 +7495,7 @@ dependencies = [ "quote", "serde", "syn 2.0.119", - "toml 1.1.6+spec-1.1.0", + "toml 1.2.3+spec-1.1.0", "uniffi_meta", ] @@ -7631,9 +7737,9 @@ dependencies = [ [[package]] name = "web-time-compat" -version = "0.2.1" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6ab47578e1cd38415489592da29326341e272bd281f4ddbc0c10b654a425ad7" +checksum = "f854754465eaf0d17b96236f75c6ddfaebf5907dc31c24ecdc265ffe609756c5" dependencies = [ "web-time", ] @@ -7998,12 +8104,23 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7e468321c81fb07fa7f4c636c3972b9100f0346e5b6a9f2bd0603a52f7ed277" dependencies = [ - "curve25519-dalek", + "curve25519-dalek 4.1.3", "rand_core 0.6.4", "serde", "zeroize", ] +[[package]] +name = "x25519-dalek" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e8131a03190127fb2263afc72b322ecadae46b6ff8c6f399ff5d02f5559af6" +dependencies = [ + "curve25519-dalek 5.1.0", + "rand_core 0.10.1", + "zeroize", +] + [[package]] name = "xxhash-rust" version = "0.8.18" @@ -8012,9 +8129,9 @@ checksum = "aee1b19627c7c60102ab80d3a9cbe18de90bfe03bfa6c3715447681f0e8c8af6" [[package]] name = "yoke" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5" +checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3" dependencies = [ "stable_deref_trait", "yoke-derive", @@ -8023,14 +8140,14 @@ dependencies = [ [[package]] name = "yoke-derive" -version = "0.8.2" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" +checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71" dependencies = [ "proc-macro2", "quote", - "syn 2.0.119", - "synstructure", + "syn 3.0.5", + "synstructure 0.14.0", ] [[package]] @@ -8071,7 +8188,7 @@ dependencies = [ "proc-macro2", "quote", "syn 2.0.119", - "synstructure", + "synstructure 0.13.2", ] [[package]] @@ -8107,9 +8224,9 @@ dependencies = [ [[package]] name = "zerovec" -version = "0.11.8" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8" +checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40" dependencies = [ "serde", "yoke", @@ -8119,9 +8236,9 @@ dependencies = [ [[package]] name = "zerovec-derive" -version = "0.11.6" +version = "0.11.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da" +checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a" dependencies = [ "proc-macro2", "quote", diff --git a/crates/onionwire-sdk/Cargo.toml b/crates/onionwire-sdk/Cargo.toml index 9c36942..ff24a3a 100644 --- a/crates/onionwire-sdk/Cargo.toml +++ b/crates/onionwire-sdk/Cargo.toml @@ -33,7 +33,7 @@ cuprate-daemon = ["onionwire/cuprate-daemon"] [dependencies] onionwire = { path = "../..", default-features = false, features = ["rustls"] } # `static-sqlite`: Android has no system libsqlite3 to link against. -arti-client = { version = "0.46", default-features = false, features = [ +arti-client = { version = "0.49", default-features = false, features = [ "tokio", "onion-service-client", "onion-service-service", diff --git a/crates/onionwire-sdk/README.md b/crates/onionwire-sdk/README.md index d025eda..545263b 100644 --- a/crates/onionwire-sdk/README.md +++ b/crates/onionwire-sdk/README.md @@ -5,7 +5,7 @@ runs on. An Android peer and a Linux peer that exchange invites interoperate — there is one protocol, not two. This is **not** a WebView wrapper and **not** a client for a hosted service. -Each install runs Arti in-process (`arti-client` 0.46, `onion-service-client` + +Each install runs Arti in-process (`arti-client` 0.49, `onion-service-client` + `onion-service-service`), hosts its own v3 onion service, and dials friends' onions directly. There is no `tor` binary, no torrc, no Orbot as the pipe. diff --git a/docs/ARTI_UPGRADE.md b/docs/ARTI_UPGRADE.md index defc59e..7045e62 100644 --- a/docs/ARTI_UPGRADE.md +++ b/docs/ARTI_UPGRADE.md @@ -12,13 +12,19 @@ Direct dependencies that come from the Arti repository, exactly as | crate | requirement | features in `Cargo.toml` | |---|---|---| -| `arti-client` | `0.46` | `default-features = false`; `tokio`, `onion-service-client`, `onion-service-service`, `compression` | -| `tor-cell` | `0.46` | — | -| `tor-hsservice` | `0.46` | — | -| `tor-rtcompat` | `0.46` | `tokio` | +| `arti-client` | `0.49` | `default-features = false`; `tokio`, `onion-service-client`, `onion-service-service`, `compression` | +| `tor-cell` | `0.49` | — | +| `tor-hsservice` | `0.49` | — | +| `tor-rtcompat` | `0.49` | `tokio` | +| `safelog` | `0.10` | — | `snow`, `rusqlite`, `ratatui`, and the rest are unrelated to Arti and are not -part of a Tor upgrade. +part of a Tor upgrade. `safelog` lives in the Arti repository and moves in +lockstep with the `tor-*` set: a stale direct `safelog` pin puts two copies in +the graph, and `HsId::display_redacted` then resolves against the wrong trait +(`error[E0599]: no method named display_redacted`). The SDK workspace +(`crates/onionwire-sdk`) has its own `arti-client` pin and lockfile; bump it +too. Two crate features re-expose Arti's TLS backends, which Arti marks **non-additive** — exactly one may be selected per build graph: @@ -29,16 +35,16 @@ Two crate features re-expose Arti's TLS backends, which Arti marks features (without it the rustls backend compiles with no provider). * `native-tls` → opt-in only, via OpenSSL. -Published Arti releases move all four crates together in lockstep. Bump them as -**one set**. A mixed set (e.g. `arti-client` 0.47 with `tor-hsservice` 0.46) is -not a configuration anyone tests upstream, and cargo will usually refuse or -silently pick one `tor-*` version and mismatched `tor-*` internals fail at -runtime. +Published Arti releases move all of the crates above together in lockstep. +Bump them as **one set**. A mixed set (e.g. `arti-client` 0.47 with +`tor-hsservice` 0.49) is not a configuration anyone tests upstream, and cargo +will usually refuse or silently pick one `tor-*` version and mismatched +`tor-*` internals fail at runtime. ## Toolchain floor **rustc 1.98+.** `Cargo.toml` sets `edition = "2024"` and `rust-version = "1.98"`. -Arti 0.46 itself requires only 1.91; the higher floor is the default +Arti 0.49 itself requires only 1.92; the higher floor is the default `cuprate-daemon` feature (`tapes` calls `VecDeque::pop_front_if`, stable since 1.93). CI builds inside `rust:1.98-bookworm` (`RUST_IMAGE` in `.forgejo/workflows/ci.yml` and `release.yml`). @@ -79,16 +85,22 @@ issue the watcher files. 1. Read the upstream release notes (Arti tags: ) and the CHANGELOG for breaking API changes. Check the new MSRV. -2. Branch from `main`; bump all four requirements in `[dependencies]` of - `Cargo.toml` together, and `rust-version` if the floor moved. +2. Branch from `main`; bump every Arti-repository pin in `[dependencies]` of + `Cargo.toml` together (`arti-client`, `tor-cell`, `tor-hsservice`, + `tor-rtcompat`, and `safelog`), the matching `arti-client` pin in + `crates/onionwire-sdk/Cargo.toml`, and `rust-version` if the floor moved. 3. Refresh the lockfile (CI builds with `--locked` and `Cargo.lock` is committed): ``` - cargo update -p arti-client -p tor-cell -p tor-hsservice -p tor-rtcompat + cargo update -p arti-client -p tor-cell -p tor-hsservice -p tor-rtcompat -p safelog git diff --stat Cargo.lock ``` Expect the whole `tor-*` family to move in the diff. A single `tor-*` crate moving alone is a sign the set is not actually lockstep — stop and look. + Then refresh the SDK workspace's separate lockfile: + ``` + ( cd crates/onionwire-sdk && cargo update -p arti-client ) + ``` 4. Build and run the offline suite: ``` cargo test --locked diff --git a/docs/THREAT_MODEL.md b/docs/THREAT_MODEL.md index a212015..14ac1e1 100644 --- a/docs/THREAT_MODEL.md +++ b/docs/THREAT_MODEL.md @@ -321,7 +321,7 @@ the app does not pick a public remote node for them. every in-process surface still says `testnet only — mainnet is unvalidated`. Cross-compiled is not device-proven. - Cuprate's own `arti` feature is off (its Tor stack is `arti-client` 0.44, - which cannot unify with this crate's 0.46), so the in-process daemon's P2P + which cannot unify with this crate's 0.49), so the in-process daemon's P2P traffic is **clearnet**: your ISP sees that this device talks to Monero peers. No Tor is on the chain path — Tor is the messenger's transport here, not the chain's. @@ -340,8 +340,8 @@ the app does not pick a public remote node for them. `connect()`, and not a C-tor fallback for chat). That listener is the bundled `arti` **binary** run as a child (`arti proxy -p `) — a second, separate Tor client with its own state and cache dirs, because - `arti-client` 0.46 exposes no SOCKS listener API. It is TCP loopback only - (`arti proxy -p` binds `127.0.0.1`/`::1`; arti 2.6.0 / `tor-config` 0.46 + `arti-client` 0.49 exposes no SOCKS listener API. It is TCP loopback only + (`arti proxy -p` binds `127.0.0.1`/`::1`; arti 2.6.0 / `tor-config` 0.49 have no Unix-socket listen target — arti#1965), and the port is usable by any local process at the user's privilege level: it is an app-private port, not an access-controlled one. The app gates the spawn on the unlocked store diff --git a/docs/WALLET.md b/docs/WALLET.md index 09cda7d..3f6fdb4 100644 --- a/docs/WALLET.md +++ b/docs/WALLET.md @@ -181,7 +181,7 @@ for the TUI. A build with `--no-default-features` does not include the daemon. Cross-compiled is not device-proven. Pointing a mainnet wallet at it is not something this build claims to do. - **No Tor on the chain path.** Cuprate's `arti` feature is off (arti-client - 0.44 vs this crate's 0.46). P2P is **clearnet**. OnionWire's Arti is the + 0.44 vs this crate's 0.49). P2P is **clearnet**. OnionWire's Arti is the messenger only. - **Inbound P2P off**, restricted RPC listener disabled. Unrestricted RPC is loopback 18081. `--trusted-daemon` still never passed. @@ -208,18 +208,42 @@ C++ binary, so it reaches Tor through a SOCKS proxy the app provides: **Tor hides the transport, not the host.** The daemon operator still sees the wallet's addresses during sync. -### Readiness — receipt verification needs a synced daemon +### Readiness — receipt verification needs a synced wallet -`chain_ready()` asks the wallet RPC `get_info` and requires -**`synchronized == true`** with `height > 0` and `height >= target_height`. A -missing field is *not ready* — fail closed. +`chain_ready()` compares the wallet's **own scanned height** with the **chain +tip**. Both halves must answer: + +1. the wallet RPC's `get_height` reports `height > 0`. That is + `monero-wallet-rpc`'s own method; `get_info` does **not** exist there — it + answers `-32601 Method not found`, so readiness never asks for it. +2. the chain daemon reports a tip, and the wallet is at it or within **2 + blocks**. The tip moves every ~2 minutes and the two numbers are two reads, + not one snapshot, so a strict equality flaps; two blocks of slack does not + hide a real lag. + +The tip comes from `daemon_get_height` (`GET /get_height` — one spelling that +works on monerod and Cuprate) against `ChildConfig::daemon_probe_addr()`: + +- local `monerod` / in-process Cuprate → `127.0.0.1:18081`; +- a **clearnet** remote daemon the user typed → that host. The wallet child + already dials it, so one `get_height` is the same exposure, not a new path; +- a **`.onion`** daemon → **not dialled** without the SOCKS child: a direct dial + would resolve the name on clearnet DNS and leak. Readiness stays false + (height-only); the status row reads syncing. A documented limit, not a bug; +- receive-only, or an externally run wallet RPC with no chain source → nothing + to ask, so not ready. + +Unknown is **not caught up**. A daemon that does not answer, a wallet with no +file open (`-13 No wallet file`), and a missing height all read *not ready*, +never a silent pass. "No wallet open" is a state, not an error banner. Until then, **receipt verification stays `verified=0`**. An unsynced wallet cannot see the chain. That is an honest limit, not a UI bug. Loopback management calls (`get_address`, `query_key`, create/import) get 5s. -Calls that wait on the chain (`get_info`, `get_transfers`, `transfer`) get 60s -(`CHAIN_RPC_TIMEOUT`). +Calls that wait on the chain (`get_transfers`, `transfer`) get 60s +(`CHAIN_RPC_TIMEOUT`). Readiness is not a chain wait: it is one local +`get_height` plus one bounded daemon probe. ## Env vars (migration path) @@ -256,8 +280,9 @@ re-points the wallet without a restart; a rejected form writes nothing. UniFFI: `set_chain_source(ChainConfig)` / `chain_source()`, `start_wallet_child()`, `stop_wallet_child()`, `wallet_status()` (cached read: no dial, for first paint) and `wallet_child_refresh()` (a live probe of the -same record — it dials the loopback wallet RPC, and the local daemon's -`get_info` when that RPC does not answer, so poll it on the order of seconds). +same record — it dials the loopback wallet RPC and asks the configured daemon +for its tip (the wallet's `get_height` is the other half), so poll it on the +order of seconds). Pass absolute paths for `wallet_rpc_bin` / `arti_bin` (`nativeLibraryDir`); the core never resolves a binary the caller named explicitly. diff --git a/src/cuprate.rs b/src/cuprate.rs index a13ea92..f272e66 100644 --- a/src/cuprate.rs +++ b/src/cuprate.rs @@ -17,7 +17,7 @@ //! name reservation), so a pinned revision is the only honest way to depend on //! it. //! * Cuprate's own `arti` feature stays **off**. Its Tor stack is arti 0.44, -//! which cannot unify with this crate's arti 0.46, and this daemon is +//! which cannot unify with this crate's arti 0.49, and this daemon is //! clearnet-only: OnionWire's Arti is the only Tor in the process. //! * The **unrestricted** RPC listener binds `127.0.0.1:` — the address //! `WalletChild::daemon_address` returns for a local source. The restricted diff --git a/src/node.rs b/src/node.rs index 86b6412..340ab7a 100644 --- a/src/node.rs +++ b/src/node.rs @@ -1065,7 +1065,12 @@ impl Node { return self.wallet_child_status(); } let cfg = self.wallet_child_config(); - let w = self.wallet_snapshot(); + // Readiness needs both halves: the wallet's own `get_height` and the + // chain tip. The tip comes from the configured daemon (loopback for a + // local source, the clearnet host the user typed, never a `.onion`). + let w = self + .wallet_snapshot() + .with_daemon_probe(cfg.daemon_probe_addr()); if !w.configured() { return self.wallet_child_status(); } @@ -1090,7 +1095,7 @@ impl Node { } let synced = progress.as_ref().is_some_and(wallet::ChainInfo::ready); let (height, target_height) = match progress { - Some(info) => (info.height, info.target_height), + Some(info) => (info.height, info.tip.unwrap_or(0)), // The wallet RPC is the honest source when it answers. When it does // not (a refused connection is the common one), the daemon this box // owns can still say — and a daemon that does not answer leaves @@ -1334,7 +1339,9 @@ impl Node { /// Pay selected friend via wallet RPC, then signed receipt. pub async fn tip(&self, friend_pk: &[u8], atomic: &str, memo: &str) -> Result<(), String> { - let w = self.wallet_snapshot(); + let w = self + .wallet_snapshot() + .with_daemon_probe(self.wallet_child_config().daemon_probe_addr()); if !w.configured() { return Err(wallet::NOT_CONFIGURED_MSG.into()); } @@ -2153,7 +2160,9 @@ impl Node { // Honest prerequisite: an unsynced wallet cannot see the tx, so a // get_transfers "miss" would be a lie. Until the chain is ready the // receipt stays verified=0 — that is the correct state, not an error. - let w = self.wallet_snapshot(); + let w = self + .wallet_snapshot() + .with_daemon_probe(self.wallet_child_config().daemon_probe_addr()); let ready = w.configured() && w.can_verify_receipts().await; if ready { match w.get_transfers().await { @@ -3417,25 +3426,43 @@ pub(crate) mod tests { } /// A loopback wallet RPC that answers what the tip path actually asks for: - /// a digest challenge, then a synced `get_info` for the readiness gate and - /// `tx_hash` for the transfer. The old single-answer mock stopped covering - /// the path when `Wallet::transfer` started probing the chain tip first — - /// it answered `tx_hash` to `get_info` and every tip was refused as unsynced. - async fn mock_wallet() -> Wallet { + /// a digest challenge, then the wallet's own scanned `get_height` for the + /// readiness gate and `tx_hash` for the transfer. `get_info` is a daemon + /// method, not a wallet one, so it is never asked. Returns the wallet and + /// the daemon stub's address (the tip the gate compares against). + async fn mock_wallet() -> (Wallet, String) { let listener = tokio::net::TcpListener::bind("127.0.0.1:0") .await .expect("bind mock wallet"); let port = listener.local_addr().expect("mock wallet addr").port(); let reply: Arc String + Send + Sync> = Arc::new(|req: &str| { - if req.contains("get_info") { - r#"{"jsonrpc":"2.0","id":"0","result":{"height":100,"target_height":100,"synchronized":true}}"# - .to_string() + if req.contains("get_height") { + r#"{"jsonrpc":"2.0","id":"0","result":{"height":100}}"#.to_string() } else { r#"{"jsonrpc":"2.0","id":"0","result":{"tx_hash":"abc123"}}"#.to_string() } }); tokio::spawn(serve_mock_rpc(listener, reply)); - Wallet::from_url(&format!("http://ow:secret@127.0.0.1:{port}")).expect("wallet url") + let wallet = Wallet::from_url(&format!("http://ow:secret@127.0.0.1:{port}")) + .expect("wallet url"); + let daemon = mock_daemon(100, 100).await; + (wallet, daemon) + } + + /// Point a test node's chain source at a daemon stub, so readiness has a + /// tip to compare the wallet's scanned height against. + fn chain_source_at(node: &Node, addr: &str) { + let (host, port) = addr.rsplit_once(':').expect("host:port"); + node.set_wallet_child_config(&ChildConfig { + source: ChainSource::Remote { + host: host.to_string(), + port: port.parse().expect("port"), + }, + wallet_rpc_bin: PathBuf::from("monero-wallet-rpc"), + arti_bin: PathBuf::from("arti"), + wallet_filename: wallet::DEFAULT_WALLET_FILENAME.to_string(), + }) + .expect("set chain source"); } /// The payer of a tip must see it in their own chat: `receipt_chat_line` is /// the recipient's view of the frame that arrived, `tip_chat_line` is what @@ -3443,11 +3470,9 @@ pub(crate) mod tests { #[tokio::test] async fn outbound_tip_appends_the_senders_own_tip_chat_line() { let dir = tempfile::tempdir().unwrap(); - let node = offline_node_with_wallet( - &dir.path().join("bob"), - Arc::new(DialOk), - mock_wallet().await, - ); + let (wallet, daemon) = mock_wallet().await; + let node = offline_node_with_wallet(&dir.path().join("bob"), Arc::new(DialOk), wallet); + chain_source_at(&node, &daemon); let peer = Keys::generate(); let addr = xmr_addr(); { @@ -3548,11 +3573,9 @@ pub(crate) mod tests { #[tokio::test] async fn outbound_tip_records_a_tip_payment_row() { let dir = tempfile::tempdir().unwrap(); - let node = offline_node_with_wallet( - &dir.path().join("bob"), - Arc::new(DialOk), - mock_wallet().await, - ); + let (wallet, daemon) = mock_wallet().await; + let node = offline_node_with_wallet(&dir.path().join("bob"), Arc::new(DialOk), wallet); + chain_source_at(&node, &daemon); let peer = Keys::generate(); let addr = xmr_addr(); { @@ -3767,23 +3790,62 @@ pub(crate) mod tests { } } + /// A chain-daemon stub on an ephemeral loopback port: `GET /get_height` + /// answers the tip, `/json_rpc get_info` answers height/target. Returns + /// `host:port`. + async fn mock_daemon(height: u64, target: u64) -> String { + use tokio::io::{AsyncReadExt, AsyncWriteExt}; + + let listener = tokio::net::TcpListener::bind("127.0.0.1:0") + .await + .expect("bind mock daemon"); + let addr = listener.local_addr().expect("mock daemon addr").to_string(); + tokio::spawn(async move { + while let Ok((mut sock, _)) = listener.accept().await { + let mut buf = vec![0u8; 4096]; + let Ok(n) = sock.read(&mut buf).await else { + return; + }; + if n == 0 { + continue; + } + let req = String::from_utf8_lossy(&buf[..n]).to_string(); + let body = if req.starts_with("GET /get_height") { + format!(r#"{{"height":{height}}}"#) + } else { + format!( + r#"{{"jsonrpc":"2.0","id":"0","result":{{"height":{height},"target_height":{target}}}}}"# + ) + }; + let _ = sock + .write_all( + format!( + "HTTP/1.1 200 OK\r\nContent-Type: application/json\r\nContent-Length: {}\r\nConnection: close\r\n\r\n{body}", + body.len() + ) + .as_bytes(), + ) + .await; + } + }); + addr + } + /// A loopback wallet RPC that answers the *status* probe: a digest - /// challenge, then `get_address` / `get_balance` / `get_info`, with the - /// chain numbers a syncing daemon reports. [`mock_wallet`] above answers the - /// *transfer* path; this one answers a refresh, which never transfers. - /// A loopback wallet RPC that answers the *status* probe: a digest - /// challenge, then `get_address` / `get_balance` / `get_info`, with the - /// chain numbers a syncing daemon reports. [`mock_wallet`] above answers the - /// *transfer* path; this one answers a refresh, which never transfers. - async fn mock_syncing_wallet(height: u64, target: u64) -> Wallet { + /// challenge, then `get_address` / `get_balance` / `get_height`, with the + /// wallet's own scanned height. Returns the wallet and the daemon stub's + /// address — the tip comes from the daemon, never from the wallet RPC. + /// [`mock_wallet`] above answers the *transfer* path; this one answers a + /// refresh, which never transfers. + async fn mock_syncing_wallet(height: u64, target: u64) -> (Wallet, String) { let listener = tokio::net::TcpListener::bind("127.0.0.1:0") .await .expect("bind mock wallet"); let port = listener.local_addr().expect("mock wallet addr").port(); let reply: Arc String + Send + Sync> = Arc::new(move |req: &str| { - if req.contains("get_info") { + if req.contains("get_height") { format!( - r#"{{"jsonrpc":"2.0","id":"0","result":{{"height":{height},"target_height":{target},"synchronized":true}}}}"# + r#"{{"jsonrpc":"2.0","id":"0","result":{{"height":{height}}}}}"# ) } else if req.contains("get_address") { format!( @@ -3795,7 +3857,10 @@ pub(crate) mod tests { } }); tokio::spawn(serve_mock_rpc(listener, reply)); - Wallet::from_url(&format!("http://ow:secret@127.0.0.1:{port}")).expect("wallet url") + let wallet = + Wallet::from_url(&format!("http://ow:secret@127.0.0.1:{port}")).expect("wallet url"); + let daemon = mock_daemon(height, target).await; + (wallet, daemon) } /// Point `node`'s wallet client at a mock. The child process stays whatever @@ -3804,13 +3869,14 @@ pub(crate) mod tests { *node.wallet.lock().expect("wallet") = wallet; } - /// Like [`mock_syncing_wallet`], but `height` is read on every `get_info`, - /// so a later store is a later answer. `synchronized` stays false: the - /// status line is a syncing chain, not a caught-up one. + /// Like [`mock_syncing_wallet`], but the wallet's scanned `height` is read on + /// every `get_height`, so a later store is a later answer. The daemon stub + /// reports `target` as its tip. Returns the wallet and the daemon address so + /// a caller can point a chain source at it. pub(crate) async fn mock_wallet_at( height: std::sync::Arc, target: u64, - ) -> Wallet { + ) -> (Wallet, String) { use std::sync::atomic::Ordering; let listener = tokio::net::TcpListener::bind("127.0.0.1:0") @@ -3818,11 +3884,9 @@ pub(crate) mod tests { .expect("bind mock wallet"); let port = listener.local_addr().expect("mock wallet addr").port(); let reply: Arc String + Send + Sync> = Arc::new(move |req: &str| { - if req.contains("get_info") { + if req.contains("get_height") { let h = height.load(Ordering::Relaxed); - format!( - r#"{{"jsonrpc":"2.0","id":"0","result":{{"height":{h},"target_height":{target},"synchronized":false}}}}"# - ) + format!(r#"{{"jsonrpc":"2.0","id":"0","result":{{"height":{h}}}}}"#) } else if req.contains("get_address") { r#"{"jsonrpc":"2.0","id":"0","result":{"address":"4test"}}"#.to_string() } else { @@ -3830,7 +3894,10 @@ pub(crate) mod tests { } }); tokio::spawn(serve_mock_rpc(listener, reply)); - Wallet::from_url(&format!("http://ow:secret@127.0.0.1:{port}")).expect("wallet url") + let wallet = + Wallet::from_url(&format!("http://ow:secret@127.0.0.1:{port}")).expect("wallet url"); + let daemon = mock_daemon(target, target).await; + (wallet, daemon) } /// A loopback daemon that answers `get_info` on the port the child probes @@ -3868,12 +3935,12 @@ pub(crate) mod tests { Some(()) } - /// The status row carries the real chain numbers: a wallet RPC that answers - /// `get_info` fills height and target, and the one-liner shows them. A - /// daemon that reports no target is not a caught-up chain — `h/0` with no - /// invented percentage. + /// The status row carries the real chain numbers: the wallet RPC's own + /// `get_height` is the wallet's scanned height, and the daemon's tip is the + /// target. A daemon that reports no separate target still gives a tip, so + /// `h/h` is the honest line — never an invented percentage. #[tokio::test] - async fn a_wallet_that_answers_get_info_fills_the_chain_progress() { + async fn the_wallet_height_and_the_daemon_tip_fill_the_chain_progress() { let dir = tempfile::tempdir().unwrap(); let node = offline_node(&dir.path().join("child"), Arc::new(NoDial)); let log = dir.path().join("argv.log"); @@ -3890,14 +3957,16 @@ pub(crate) mod tests { let _hold = PublishedPortHold::watching(std::slice::from_ref(&log)); node.start_wallet_child().expect("start"); // The child is a fake process; the wallet the node actually talks to is - // the mock RPC, which is where the numbers come from. - *node.wallet.lock().unwrap() = mock_syncing_wallet(4549, 0).await; + // the mock RPC, and the tip comes from the daemon stub. + let (wallet, daemon) = mock_syncing_wallet(4549, 0).await; + *node.wallet.lock().unwrap() = wallet; + chain_source_at(&node, &daemon); let status = node.wallet_child_refresh().await; assert_eq!(status.state, WalletChildState::Ready, "{status:?}"); assert_eq!(status.height, 4549, "{status:?}"); - assert_eq!(status.target_height, 0, "{status:?}"); - assert!(status.line().contains("sync 4549/0"), "{}", status.line()); + assert_eq!(status.target_height, 4549, "{status:?}"); + assert!(status.line().contains("sync 4549/4549"), "{}", status.line()); assert!(!status.line().contains('%'), "{}", status.line()); node.stop_wallet_child().expect("stop"); @@ -4347,7 +4416,10 @@ pub(crate) mod tests { let err = node .start_wallet_child() .expect_err("a missing binary fails"); - assert!(err.contains("spawn"), "{err}"); + // The refusal names the configured path: the old `spawn