Protocol:
- WireMessage::FileHeader { id, sender_fp, filename, file_size, total_chunks, sha256 }
- WireMessage::FileChunk { id, sender_fp, filename, chunk_index, total_chunks, data }
- 64KB chunks, SHA-256 integrity verification
CLI TUI:
- /file <path> command: reads file, chunks, encrypts each with ratchet, sends
- Progress display: "Sending file.pdf [3/10]..."
- Incoming file reassembly with chunk tracking
- SHA-256 verification on complete
- Saves to data_dir/downloads/
- Max file size: 10MB
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
34 lines
817 B
TOML
34 lines
817 B
TOML
[package]
|
|
name = "warzone-client"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
|
|
[dependencies]
|
|
warzone-protocol = { path = "../warzone-protocol" }
|
|
tokio.workspace = true
|
|
reqwest.workspace = true
|
|
sled.workspace = true
|
|
clap.workspace = true
|
|
ratatui.workspace = true
|
|
crossterm.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
anyhow.workspace = true
|
|
argon2.workspace = true
|
|
chacha20poly1305.workspace = true
|
|
rand.workspace = true
|
|
zeroize.workspace = true
|
|
hex.workspace = true
|
|
base64.workspace = true
|
|
x25519-dalek.workspace = true
|
|
bincode.workspace = true
|
|
sha2.workspace = true
|
|
libc = "0.2"
|
|
uuid.workspace = true
|
|
chrono.workspace = true
|
|
tokio-tungstenite = { version = "0.24", features = ["native-tls"] }
|
|
futures-util = "0.3"
|
|
url = "2"
|