Add prototype encrypted CAS blobs

This commit is contained in:
Eric Wendland 2026-05-21 01:35:00 +02:00
commit 533ffc8c2a
8 changed files with 382 additions and 6 deletions

View file

@ -45,10 +45,19 @@ pub enum ControlRequest {
CasAdd {
path: PathBuf,
},
CasAddPrivate {
resource: String,
path: PathBuf,
},
CasGet {
hash: BlobHash,
out: PathBuf,
},
CasGetPrivate {
resource: String,
hash: BlobHash,
out: PathBuf,
},
CasFetch {
node: String,
hash: BlobHash,
@ -386,11 +395,27 @@ pub enum ControlResponse {
hash: BlobHash,
size_bytes: u64,
},
CasPrivateAdded {
resource: String,
epoch: u64,
plaintext_hash: BlobHash,
encrypted_hash: BlobHash,
size_bytes: u64,
note: String,
},
CasGot {
hash: BlobHash,
out: PathBuf,
size_bytes: u64,
},
CasPrivateGot {
resource: String,
hash: BlobHash,
plaintext_hash: BlobHash,
out: PathBuf,
size_bytes: u64,
note: String,
},
CasFetched {
peer_node_id: String,
peer_agent_id: String,