No description
Find a file
2026-05-24 14:43:23 -05:00
README.md first commit 2026-05-24 14:43:23 -05:00

Overview

This repository handles the decentralized, version-controlled storage of configuration data. It does not know how to route packets or what the configurations mean; it only knows how to chunk, encrypt, store, and retrieve versioned data sets.

Core Responsibilities

  • Shamir's Secret Sharing: Splits sensitive payloads (or symmetric keys) into cryptographically secure shards (e.g., requires 3 of 5 shards to unlock).
  • Git-Backed Revisioning: Wraps libgit2 (or similar) to provide immutable, cryptographically hashed version history for Database Sets.
  • Layered Encryption (Onion Wrapper): Manages the logic for wrapping/unwrapping Database Sets in new encryption layers when nodes are added or compromised (Rekey Triggers).
  • Cold Storage Sync: Manages the automated, dumb pushing/pulling of the encrypted Git blobs to external S3/Object Storage for disaster recovery.

Exported Interfaces / API

  • CreateDatabaseSet(QuorumRequirements)
  • WriteConfig(DatabaseID, Payload) -> Returns required Shards to distribute.
  • ReconstructConfig(DatabaseID, ShardCollection) -> Returns plaintext payload if quorum is met.
  • RekeyDatabase(DatabaseID, NewTrustedPeers)

Suggested Tech Stack

  • Language: Go or Rust.
  • Libraries: HashiCorp's vault Shamir implementation (or custom), libgit2 bindings, standard AWS S3 SDKs.