ef7344879541ac5989fe10b89dc93470c32dedf4
Flake input changes: * Updated 'nixpkgs': 'github:NixOS/nixpkgs/b60a6af8eda54f5c28ab8882785e2b4ab8c13ce7' -> 'github:NixOS/nixpkgs/ff65ba7a2bccf66ce8c20ff4185967c0c927a42c'
Encrypted CRDTs
Main goal: make an encrypted layer that can be used to store CRDTs on something like syncthing.
tech
Changes are stored as CRDT-Ops or full-States. Resulting files are immutable (files are written only once and never changed after that; but can be deleted) and content-addressable (the name of the file is the hash of its content).
compaction
Before writing out a change the device can decide to do a compaction on the data by writing out the a full-state and removing all merged state and applied op files.
header
- resembles luks (the actual encryption key used for the data isn't derived from the password(s))
- no need to re-encrypt all files after key change (but can be re-encrypted if needed. this requires a compactation and the old encryption key needs to be stored to be able to apply ops coming from other devices that are still using the old key)
- allows password management / multiple passwords
- store header as full-state CRDT
Description
Languages
Rust
100%