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

wire: Add epoch field to mix key exchange message #3235

Merged
merged 1 commit into from
May 4, 2024

Conversation

jrick
Copy link
Member

@jrick jrick commented Apr 25, 2024

The epoch will be included in the derivation of the session hash, instead of only deriving a session from previous pair requests. This allows new messages in following epochs to not conflict with previous session attempts of the same pair request set.

This also provides a decent heuristic to discover and exclude any peers that were unresponsive for a full epoch or more.

This is a breaking API change but the wire module has not seen a release since mixing messages were added.

The epoch will be included in the derivation of the session hash, instead of
only deriving a session from previous pair requests.  This allows new messages
in following epochs to not conflict with previous session attempts of the same
pair request set.

This also provides a decent heuristic to discover and exclude any peers that
were unresponsive for a full epoch or more.

This is a breaking API change but the wire module has not seen a release since
mixing messages were added.
@davecgh davecgh merged commit 6c8a677 into decred:master May 4, 2024
2 checks passed
@davecgh davecgh added this to the 1.9.0 milestone May 4, 2024
@jrick jrick deleted the ke_epoch branch May 8, 2024 22:59
@davecgh davecgh added the wire protocol change Discussion and pull requests regarding items that require changes to the wire protocol. label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wire protocol change Discussion and pull requests regarding items that require changes to the wire protocol.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants