End-to-end encrypted communication and file synchronization for SyftBox using X3DH key agreement.
This crate provides cryptographic primitives for secure messaging and file synchronization in SyftBox using Ed25519 identity signing, X25519 key agreement, and XChaCha20-Poly1305 for payload encryption.
This software is considered Beta so use at your own risk.
Following the workspace pattern:
syft-crypto-core/
├── protocol/ # Core crypto library (keep as small as possible for easy security audit)
│ ├── src/
│ │ └── lib.rs
│ └── tests/ # Comprehensive tests
│
├── cli/ # Command-line interface to use the API in protocol/
│ └── src/
│ └── main.rs
│
└── Cargo.toml # Workspace configuration
just --list # Show all commands
just build # Build workspace
just test # Run all testsjust build # Build entire workspace
just build-protocol # Build only protocol library
just build-cli # Build only CLI
just build-release # Release buildjust test # Run all tests
just test-protocol # Protocol tests only
just test-verbose # Tests with outputjust format # Format code
just lint # Run clippy
just pre-commit # Format + lint + testjust run <ARGS> # Run CLI with arguments
just cli-help # Show CLI help
just keygen-help # Show keygen helpjust clean # Clean build artifacts
just doc # Generate documentation
just tree # Show project structureApache-2.0