From 3da7c04e8e71fbf24d223f53da605866ebce2a8e Mon Sep 17 00:00:00 2001 From: rust-dev Date: Sat, 12 Sep 2026 16:05:13 -0400 Subject: [PATCH] docs(sdk): the SDK README's at-rest row matches the SQLCipher store (stale since #43) The row still claimed identity keys are plaintext in sqlite. Since #43 the whole onionwire.db is SQLCipher (Argon2id key over the 16-byte store_salt, raw PRAGMA key form, fail-closed unlock), so identity keys, the roster and the locators are ciphertext on disk; the per-row ChaCha20-Poly1305 + row-bound AAD layer stays on top. Wording grounded in docs/THREAT_MODEL.md 'Your store is encrypted' and src/store.rs (SALT_FILE, write_salt 0600, pragma_key). Honest caveat kept. Docs-only; no code change. --- crates/onionwire-sdk/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/onionwire-sdk/README.md b/crates/onionwire-sdk/README.md index 36e25a5..b789454 100644 --- a/crates/onionwire-sdk/README.md +++ b/crates/onionwire-sdk/README.md @@ -19,7 +19,7 @@ onions directly. There is no `tor` binary, no torrc, no Orbot as the pipe. | Invite | `onionwire:v1:k=…:o=…:spk=…:sig=…` | | Crypto | Noise IK (`Noise_IK_25519_ChaChaPoly_BLAKE2s`). `spk` is x25519. | | Fail closed | Peer onion down → the send fails. No outbox, no spool in v1. | -| At rest | Chat bodies encrypted (Argon2id wrap + ChaCha20-Poly1305). Identity keys in sqlite are plaintext — that is honest, not an oversight. | +| At rest | The whole `onionwire.db` is SQLCipher (Argon2id key over the 16-byte `store_salt`, handed to SQLCipher as a raw `PRAGMA key`, unlock fail-closed), so identity keys, the roster and locators are ciphertext on disk. Chat bodies keep a second per-row ChaCha20-Poly1305 layer with row-bound AAD. At-rest encryption does not protect against a live compromise or against an attacker who knows the passphrase. | ### Invite string -- 2.52.0