Scaffold Rust workspace: warzone-protocol, server, client, mule
4 crates, all compile. 16/17 tests pass.
warzone-protocol (core crypto):
- Seed-based identity (Ed25519 + X25519 from 32-byte seed via HKDF)
- BIP39 mnemonic encode/decode (24 words)
- Fingerprint type (SHA-256 truncated, displayed as xxxx:xxxx:xxxx:xxxx)
- ChaCha20-Poly1305 AEAD encrypt/decrypt with random nonce
- HKDF-SHA256 key derivation
- Pre-key bundle generation with Ed25519 signatures
- X3DH key exchange (simplified, needs X25519 identity key in bundle)
- Double Ratchet: full implementation with DH ratchet, chain ratchet,
out-of-order message handling via skipped keys cache
- Message format (WarzoneMessage envelope + RatchetHeader)
- Session type with ratchet state
- Storage trait definitions (PreKeyStore, SessionStore, MessageQueue)
warzone-server (axum):
- sled database (keys, messages, one-time pre-keys)
- Routes: /v1/health, /v1/keys/register, /v1/keys/{fp},
/v1/messages/send, /v1/messages/poll/{fp}, /v1/messages/{id}/ack
warzone-client (CLI):
- `warzone init` — generate seed, show mnemonic, save to ~/.warzone/
- `warzone recover <words>` — restore from mnemonic
- `warzone info` — show fingerprint and keys
- Seed storage at ~/.warzone/identity.seed (600 perms)
- Stubs for send, recv, chat commands
warzone-mule: Phase 4 placeholder
Known issue: X3DH test fails (initiate/respond use different DH ops
due to missing X25519 identity key in bundle). Fix in next step.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Binary file not shown.
@@ -0,0 +1 @@
|
||||
This file has an mtime of when this was started.
|
||||
@@ -0,0 +1 @@
|
||||
dee103a2f780248a
|
||||
@@ -0,0 +1 @@
|
||||
{"rustc":13850170861107434965,"features":"[\"__tls\", \"charset\", \"default\", \"default-tls\", \"h2\", \"http2\", \"json\", \"system-proxy\"]","declared_features":"[\"__rustls\", \"__rustls-ring\", \"__tls\", \"blocking\", \"brotli\", \"charset\", \"cookies\", \"default\", \"default-tls\", \"deflate\", \"gzip\", \"h2\", \"hickory-dns\", \"http2\", \"http3\", \"json\", \"macos-system-configuration\", \"multipart\", \"native-tls\", \"native-tls-alpn\", \"native-tls-vendored\", \"rustls-tls\", \"rustls-tls-manual-roots\", \"rustls-tls-manual-roots-no-provider\", \"rustls-tls-native-roots\", \"rustls-tls-native-roots-no-provider\", \"rustls-tls-no-provider\", \"rustls-tls-webpki-roots\", \"rustls-tls-webpki-roots-no-provider\", \"socks\", \"stream\", \"system-proxy\", \"trust-dns\", \"zstd\"]","target":8885864859914201979,"profile":10900257523021023328,"path":6096322941590817201,"deps":[[302948626015856208,"futures_core",false,980744290676623208],[784494742817713399,"tower_service",false,8510158970010487276],[1528297757488249563,"url",false,7731754506875850858],[2251399859588827949,"pin_project_lite",false,1188568725061248759],[2517136641825875337,"sync_wrapper",false,4488299594438765926],[2620434475832828286,"http",false,10881460910397689437],[3158163345960637315,"h2",false,11213064460245453342],[3632162862999675140,"tower",false,3614424181981772264],[3870702314125662939,"bytes",false,4696762725291962905],[4160778395972110362,"hyper",false,11720024341265954351],[6803352382179706244,"percent_encoding",false,398509632234206594],[8434721349366383850,"tower_http",false,9150518659664084810],[9144560277883153344,"native_tls_crate",false,14927089236687835220],[10229185211513642314,"mime",false,13793488153083338064],[10630857666389190470,"log",false,15245802057776188872],[11976082518617474977,"hyper_util",false,13627700911059654302],[12186126227181294540,"tokio_native_tls",false,3961441370052066902],[13077212702700853852,"base64",false,13047702231112861346],[13298363700532491723,"tokio",false,14699752842008257147],[13548984313718623784,"serde",false,13370104226237848235],[13795362694956882968,"serde_json",false,2355216187356245444],[14084095096285906100,"http_body",false,2036947769858085993],[14564311161534545801,"encoding_rs",false,3060419820417941569],[16542808166767769916,"serde_urlencoded",false,1931840422487481577],[16900715236047033623,"http_body_util",false,7746633921453758944],[17894305664988315121,"rustls_pki_types",false,7140343151999330100],[18273243456331255970,"hyper_tls",false,16210486758362862628]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/reqwest-6e367369a7445f42/dep-lib-reqwest","checksum":false}}],"rustflags":[],"config":2069994364910194474,"compile_kind":0}
|
||||
Reference in New Issue
Block a user