24-Word Cold Recovery
If you lose your machine, SSD, and metadata.redb, your 24-word BIP-39 recovery phrase is enough to locate, verify, and restore your entire file catalog and bilateral ledgers from peers with zero central servers.
Two-Tier Capsule Architecture
Section titled “Two-Tier Capsule Architecture”- Deterministic Blind DHT Locator: Derived via
HKDF-SHA256(backdit/locator) from your 24-word mnemonic so a fresh machine can query Kademlia without any prior state or account ID on disk. - Tier 1 Root Index (
BKDTCAP1,<= 1 MiB):- Contains a
188-byte Ed25519-signed header (sequence,created_at,ciphertext_len,ciphertext_hashusingBLAKE3) andXChaCha20-Poly1305encrypted payload holdinghost_directoryandCapsuleSegmentRefpointers. - Replicated directly to up to
MAX_CAPSULE_REPLICAS = 24hosts (TARGET_CONFIRMED_REPLICAS = 20). Hosts admit capsules viaadmit_capsule_storebypassing shard bootstrap debt caps.
- Contains a
- Tier 2 Catalog Segments (
2 MiBRS 8+6):- File manifests,
PackRecords,PlacementRecords, tombstones, and bilateral ledger checkpoints partition into Zstd-compressed, BLAKE3-keyedXChaCha20-Poly1305BaseandDeltasegments (DEFAULT_CAPSULE_SEGMENT_TARGET_BYTES = 2 MiB). - Segments are erasure-coded (
RS 8+6) across peers, allowing catalogs of thousands of files and multi-TB datasets to scale past the1 MiBRoot Index cap. - Delta compaction folds deltas into a fresh
Basesnapshot when delta count hits16(DEFAULT_CAPSULE_DELTA_COMPACTION_COUNT) ordelta_bytes * 4 > base_bytes.
- File manifests,
Publishing & Safety Refresh Cadence
Section titled “Publishing & Safety Refresh Cadence”- Event-driven debounced publish: Uploads, deletes, pack changes, and repairs call
mark_capsule_dirty(), coalescing bursts behind an8-second debounce window. - Startup & idle safety net: Daemons check for pending capsule publishes
120-149safter startup, and Sentinel runs a24h(RECOVERY_CAPSULE_SAFETY_REFRESH_INTERVAL) periodic refresh and capsule segment repair pass (12hhost DHT re-provide).
Two-Step Clean-Machine Restore & Rollback Check
Section titled “Two-Step Clean-Machine Restore & Rollback Check”To protect against a rogue or eclipsed peer serving an older valid signed capsule:
- Discovery (
discover_recovery_capsule): Polls up to32DHT providers and connected peers, verifies Ed25519 signatures without mutating the local database, and returnscapsule_sequence,capsule_published_unix,confirming_hosts, andtotal_valid_replicasso you can confirm the snapshot is current. - Atomic Hydration (
restore_clean_machine): Downloads Tier 1 Root + RS-reconstructs Tier 2 segments (buffer_unordered(4)), verifiesBLAKE3digests, and hydratesmetadata.redbin a singleDurability::Immediatetransaction (recomputingbytes_hosted_for_peeraccurately from local disk state while preservingbytes_stored_by_peerand historicalbalance_byte_seconds).
For CLI or offline backup workflows:
backdit recover --mnemonic-file /secure/usb/words.txtbackdit recovery --help