Expand description
CP Sync - Merkle trees, cognitive diffs, and crypto
Provides:
- Diff generation and application
- Encryption (XChaCha20-Poly1305)
- Signatures (Ed25519)
- Device identity and pairing (X25519 key agreement)
- Serialization (CBOR + zstd compression)
Structs§
- Crypto
Engine - Cryptographic engine for encrypting and signing diffs
- Device
Identity - Device identity containing signing keys and derived key agreement keys
- Encrypted
Payload - Encrypted payload for transmission
- Merkle
Tree - Merkle tree for computing state roots
- Paired
Device - A paired remote device with derived encryption key
- Pairing
Confirmation - Pairing confirmation containing mutual verification data
- Pairing
Request - Pairing request containing public keys for key agreement
- Signed
Diff - Signed diff wrapper for relay transmission
Functions§
- deserialize_
diff - Decompress and deserialize a diff from CBOR
- serialize_
diff - Serialize a diff to CBOR and compress