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-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;
|
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,
|
|
|
|
|
};
|