2026-09-10 14:50:01 -04:00
|
|
|
pub mod backup;
|
2026-09-10 14:18:06 -04:00
|
|
|
pub mod dispatch;
|
2026-09-10 23:32:06 -04:00
|
|
|
pub mod file;
|
2026-09-10 02:07:40 -04:00
|
|
|
pub mod frame;
|
|
|
|
|
pub mod hs;
|
2026-09-10 02:43:45 -04:00
|
|
|
pub mod loc;
|
2026-09-10 02:07:40 -04:00
|
|
|
pub mod node;
|
feat(outbox): local retry queue for chat sends
Queue a chat send locally when the peer's v3 onion is unreachable and retry
it with exponential backoff (30s doubling, capped at 30 min, 8 attempts then
terminal Failed). Still peer-to-peer: no server, no store-and-forward relay,
no new frame prefix — every attempt is a fresh Noise IK handshake.
- src/outbox.rs: Outbox + Deliverer + ArtiDeliverer, pure backoff_secs(),
is_permanent_send_error(), background worker (15s scan).
- store: `outbox` table (no body column — the body is read from the joined
messages row, under that row's existing AEAD + AAD), append_message_id(),
queue/due/pending/mark_* helpers, reset_sending_outbox(), wipe.
- Node::send() returns Result<OutboxStatus, String> (Sent/Queued) instead of
Err on transport failure; protocol errors still fail immediately and are
never queued.
- Retry triggers: timer, unlock/foreground (spawn_flush_all), and "that peer
was just seen" (handshake or connect_onion -> spawn_flush_friend).
- File transfer and payment/rcp frames stay fail-closed.
- docs/PROTOCOL.md + docs/THREAT_MODEL.md: replace the no-queue statements;
add the seizure/cadence delta to the threat model.
src/tui.rs gets one forced arm change (Ok(()) -> Ok(_)); UI surfacing is
child card t_d9a5b065.
2026-09-12 13:35:10 -04:00
|
|
|
pub mod outbox;
|
2026-09-10 14:37:43 -04:00
|
|
|
pub mod pay;
|
2026-09-10 14:25:31 -04:00
|
|
|
pub mod profile;
|
2026-09-10 01:54:19 -04:00
|
|
|
pub mod qr;
|
2026-09-16 18:05:39 -04:00
|
|
|
pub mod ratchet;
|
2026-09-10 14:50:01 -04:00
|
|
|
pub mod ratelimit;
|
2026-09-11 23:42:48 -04:00
|
|
|
pub mod sanitize;
|
2026-09-10 02:07:40 -04:00
|
|
|
pub mod session;
|
2026-09-10 01:43:02 -04:00
|
|
|
mod store;
|
2026-09-10 01:54:19 -04:00
|
|
|
pub mod tui;
|
2026-09-10 14:37:43 -04:00
|
|
|
pub mod wallet;
|
wallet: app-owned child lifecycle + user-chosen ChainSource
The app now owns monero-wallet-rpc (and monerod when the chain source is
local) instead of requiring the user to start them and export
ONIONWIRE_WALLET_RPC.
- ChainSource enum: None / Local { monerod_bin, datadir } / Remote { host,
port }. No default remote node; Remote is only constructed from explicit
user input. A .onion Remote is refused without a SOCKS proxy (separate
card).
- WalletChild in src/wallet_child.rs spawns monero-wallet-rpc with
--rpc-bind-ip 127.0.0.1, a random free loopback port, generated
--rpc-login, and --wallet-dir /wallet; monerod too for a
local source. --trusted-daemon is never passed.
- Generated RPC creds are sealed in the encrypted SQLCipher store
(wallet_child table, AEAD on top of whole-db encryption), never a
plaintext file. The Wallet client is built from the generated loopback
URL, not from_env.
- Readiness predicate: chain_ready() requires synchronized==true, height>0,
height>=target_height; can_spend() and can_verify_receipts() gate on it.
Unsynced -> receipts stay verified=0, spend refused with a clear message.
- Backend-aware timeouts: local management calls keep 5s; chain-dependent
calls (get_info, get_transfers, transfer) get 60s (CHAIN_RPC_TIMEOUT),
because a first sync or a remote daemon outlasts 5s and a 5s cap there
is what left receipts permanently unverified.
- node.rs ingest_receipt gates on can_verify_receipts() instead of
configured() alone.
- docs/WALLET.md rewritten for the child lifecycle + chain source.
Base: feat/wallet-create-import (PR #66). Do not rebase onto main.
Co-Authored-By: Hermes Agent <agent@local>
2026-09-14 18:55:07 -04:00
|
|
|
pub mod wallet_child;
|
2026-09-10 01:43:02 -04:00
|
|
|
|
2026-09-10 21:10:50 -04:00
|
|
|
pub use store::{
|
|
|
|
|
Friend, FriendProfile, Message, Payment, PaymentWrite, SelfIdentity, Store,
|
|
|
|
|
resolve_store_passphrase,
|
|
|
|
|
};
|