Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secure Message Delivery and reordered messages #313

Open
fizyk20 opened this issue May 24, 2019 · 0 comments
Open

Secure Message Delivery and reordered messages #313

fizyk20 opened this issue May 24, 2019 · 0 comments

Comments

@fizyk20
Copy link
Contributor

fizyk20 commented May 24, 2019

Consider this scenario:

  • X is at version 1 and sends a message to Y, that knows X at version 1. It attaches a chain (v0, v1) to the message.
  • X advances to version 2 and sends another message to Y. It attaches a chain (v0, v1, v2).
  • Y receives the second message first and updates its knowledge of X to v2.
  • Y receives the first message and cannot validate it, as v2 doesn't match any of the attached keys (v0, v1).

A possible (though hacky) solution is to keep old_infos, that is - an LRU cache of other sections' outdated keys. This way it will be probable that in such a scenario Y will still have the v0 key for X in its old_infos when the first message arrives, which will enable it to validate it correctly. This is not a complete solution, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant