docs(sdk): the SDK README's at-rest row matches the SQLCipher store (stale since #43) #57

Closed
sirius wants to merge 1 commit from wt/t_d125e661 into main

View file

@ -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