Skip to content

Handle skipped and duplicate ratchet messages - #12

Merged
LashSesh merged 1 commit into
mainfrom
codex/comment-lines-140-to-148-in-ratchet.py
Oct 13, 2025
Merged

LashSesh merged 1 commit into
mainfrom
codex/comment-lines-140-to-148-in-ratchet.py

Conversation

@LashSesh

Copy link
Copy Markdown
Owner

Summary

  • ensure the receiver caches processed headers and skips prior-chain keys before a DH ratchet to avoid losing out-of-order messages
  • reject duplicate frames by tracking processed headers and validating message numbers
  • add regression tests for out-of-order delivery across a ratchet step and duplicate retransmissions

Testing

  • pytest tests/test_ratchet_basic.py

https://chatgpt.com/codex/tasks/task_e_68ecd31802c48331bbbc026e053e36aa

@LashSesh
LashSesh merged commit 13982fc into main Oct 13, 2025
1 check failed
@LashSesh
LashSesh deleted the codex/comment-lines-140-to-148-in-ratchet.py branch October 13, 2025 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant