Skip to main content

Crate doublecrypt_core

Crate doublecrypt_core 

Source
Expand description

doublecrypt-core: Encrypted filesystem core library.

This crate implements a minimal encrypted object-backed filesystem. All filesystem logic runs on the client side; the backend block store sees only opaque encrypted blocks.

§Architecture

  • block_store – Block store trait and local implementations
  • cached_store – Write-back LRU cache for any BlockStore
  • proto – Shared protobuf types for the block-store wire protocol
  • network_store – mTLS network-backed block store (feature: network)
  • allocator – Slot/block allocator
  • crypto – AEAD encryption engine (ChaCha20-Poly1305)
  • codec – Object serialization/encryption helpers
  • model – Core data types (Inode, DirectoryPage, ExtentMap, etc.)
  • transaction – Copy-on-write commit and root pointer management
  • fs – High-level filesystem operations
  • ffi – C ABI for Swift interop
  • error – Error types

Modules§

allocator
block_store
cached_store
Write-back LRU cache that wraps any BlockStore.
codec
crypto
error
ffi
Minimal C ABI for Swift interop.
fs
model
network_store
Network-backed block store that connects to a doublecrypt-server over TLS.
proto
Protobuf types for the doublecrypt block-store protocol.
transaction