aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/src/meshbay_node/replication.py
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-08-09 05:27:16 +0200
committerChristophe Besson <cbesson@gmail.com>2026-08-09 05:27:16 +0200
commitcb6e33a2c82a2f61712c3418c156b1ef3e12aaf4 (patch)
treed0585c3d5079c8f162295e9eadb6a2ea9198fd61 /packages/meshbay-node/src/meshbay_node/replication.py
parent99e965329cc2c88b667d7ba4733851445f3e2641 (diff)
downloadmeshbay-cb6e33a2c82a2f61712c3418c156b1ef3e12aaf4.tar.gz
feat(common): add Double Ratchet algorithm — 6.1
RatchetState: full Signal-spec Double Ratchet (DH ratchet + symmetric ratchet). KDF_RK/KDF_CK via HKDF-SHA256. AES-256-GCM message encryption. MKSKIP for out-of-order delivery (max 1000 skipped keys). ChatMessage dataclass with to_dict/from_dict for wire serialisation. Properties validated by tests: ✓ Forward secrecy (consumed keys unreplayable) ✓ Out-of-order delivery ✓ Associated data binding ✓ Break-in recovery (post-ratchet keys independent) ✓ 100-message stress test 11/11 tests in 0.06s. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-node/src/meshbay_node/replication.py')
0 files changed, 0 insertions, 0 deletions