aboutsummaryrefslogtreecommitdiffstats
path: root/src/paste.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add chunked paste support for content up to 1.44 MBmurilo ijanc2026-03-271-4/+17
| | | | | | | | | | | | | | | Large pastes are split into 8 KiB chunks on the client side, each stored separately in a dedicated chunks/ directory. A version-2 manifest paste lists the chunk hashes and is announced to the DHT; chunks replicate via periodic republish with per-put throttling to avoid rate-limit bans. - New PUTC/PUTM protocol commands for chunks and manifests - Client-side chunking avoids O(n^2) base58 on large content - HTTP handler reassembles chunks directly from store - DHT sync routes incoming chunks to chunks/ directory - Republish interval reduced to 5 min with 200ms throttle - tp.1 updated with new 1.44 MB limit
* Fix critical data integrity and security issuesmurilo ijanc2026-03-251-1/+1
| | | | | | | | | | - Atomic writes in store (write-to-temp + rename) to prevent corruption on crash - Validate DHT results against requested content hash to reject forged data from malicious nodes - Limit protocol line size to 128 KiB on Unix socket to prevent memory exhaustion - Use saturating_add for TTL expiry to prevent u64 overflow
* Initial commit: tesseras-paste decentralized pastebinmurilo ijanc2026-03-251-0/+128
DHT-backed encrypted pastebin with two binaries (tp/tpd), XChaCha20-Poly1305 encryption, content-addressed storage, and Unix socket + HTTP interfaces.