onionwire/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
sirius cb411da813
All checks were successful
ci / test (pull_request) Successful in 5m37s
ci / sdk (pull_request) Successful in 1m21s
ci / fuzz (pull_request) Successful in 4m52s
android-ci / android (pull_request) Successful in 12m15s
wallet: answer the Digest challenge on the connection that issued it
monero-wallet-rpc (epee) keeps its Digest nonce per TCP connection: the
`http_server_auth` lives inside `http_custom_handler`, which is created per
connection, so its nonce starts empty and any request without a valid
`Authorization` field mints a fresh one. The client opened a *second* connection
for the authenticated retry, presenting a nonce that socket never issued — so a
real wallet RPC answered 401 forever, however correct the login was. That is the
`wallet RPC HTTP HTTP/1.1 401 Unauthorized` the TUI and Android showed; the
canned mocks replayed the challenge on any socket, so they stayed green.

- `post_digest`/`http_digest`: one `TcpStream` for the challenge and the retry,
  no `Connection: close` on the challenge (epee closes the socket with the 401
  when the request asks for it), `read_one_response` honouring `Content-Length`
  (a keep-alive response never ends in EOF; with no length the body ends at EOF,
  which is what keeps the 1 MiB cap meaningful for an open RPC).
- A 401 after our *own* challenge now reads: the login does not match the
  child's `--rpc-login`.
- Mocks in `tests/wallet.rs` and `src/node.rs` model the per-connection nonce:
  `serve_one_conn`/`serve_rpc_conns`. Two tests pin it — one RPC call uses one
  connection, and a nonce presented on another connection is refused.
- `docs/WALLET.md`: what a 401 means and why it is not the flow.

Verified end-to-end against `monero-wallet-rpc` v0.18.5.1 (`--rpc-login`,
`--offline`, real wallet open): unfixed tree → `wallet RPC HTTP HTTP/1.1 401
Unauthorized`; fixed tree → `connected: true` with the wallet's real address.
2026-09-20 09:17:05 -04:00
..
backup.rs feat(core): zeroize in-memory secret material (Noise/Ed25519/X25519/store key) 2026-09-12 13:55:07 -04:00
cuprate.rs fix(cuprate): seed XDG so Android parse does not poison LazyLock 2026-09-19 17:54:44 -04:00
dispatch.rs chat: send and receive as ratchet frames through the outbox payload 2026-09-16 19:02:52 -04:00
file.rs Merge branch 'main' into wt/t_fc02d8b6 2026-09-12 04:11:00 +00:00
frame.rs Add Noise IK encrypted stream over Arti. 2026-09-10 02:07:40 -04:00
hs.rs feat(core,sdk): explicit Tor lifecycle — stop, flush, observable state 2026-09-12 15:10:29 -04:00
lib.rs wallet: land the in-process Cuprate chain source on main 2026-09-18 13:45:59 -04:00
loc.rs feat(core): zeroize the profile/loc signing copy and the TUI passphrase buffer 2026-09-12 15:41:54 -04:00
main.rs fix(cli): hide store passphrase like a password prompt 2026-09-10 21:10:50 -04:00
node.rs wallet: answer the Digest challenge on the connection that issued it 2026-09-20 09:17:05 -04:00
outbox.rs chat: send and receive as ratchet frames through the outbox payload 2026-09-16 19:02:52 -04:00
pay.rs feat: tip frame (sign/verify/encode/decode), wallet balance + receive address, F6 wallet screen with QR, dispatch Kind::Tip 2026-09-12 23:13:22 -04:00
profile.rs feat(core): zeroize the profile/loc signing copy and the TUI passphrase buffer 2026-09-12 15:41:54 -04:00
qr.rs feat(core): zeroize in-memory secret material (Noise/Ed25519/X25519/store key) 2026-09-12 13:55:07 -04:00
ratchet.rs ratchet: reject frames under MIN_FRAME_LEN before indexing the version byte 2026-09-16 19:50:36 -04:00
ratelimit.rs feat: incoming rate limit, identity backup, v0.2.0 2026-09-10 14:50:01 -04:00
sanitize.rs [verified] sanitize peer chat/control/bidi before store and TUI render 2026-09-11 23:42:48 -04:00
session.rs Merge branch 'main' into feat/zeroize-secrets 2026-09-12 19:06:50 +00:00
store.rs wallet: stored config (F7), WalletStatus snapshot, pay/tip readiness guard 2026-09-18 09:28:11 -04:00
tui.rs feat(wallet): mainnet pruned and full on-device chain modes 2026-09-19 12:54:35 -04:00
wallet.rs wallet: answer the Digest challenge on the connection that issued it 2026-09-20 09:17:05 -04:00
wallet_child.rs wallet: show the chain daemon's sync height and target on the child status 2026-09-19 19:38:52 -04:00