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

Task/deterministic serialization #13

Merged
merged 5 commits into from
Jan 27, 2023
Merged

Conversation

chriswk
Copy link
Member

@chriswk chriswk commented Jan 27, 2023

This PR adds the "hashes" feature to this library, it also updates the serialization of maps to use OrderedMaps to make sure the order of keys are deterministic. This was needed to have the hash of the ClientFeatures struct be deterministic

@@ -82,6 +89,24 @@ where
}))
}

///
/// We need this to ensure that
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this sentence isn't complete

Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM

@chriswk chriswk merged commit ac9da78 into main Jan 27, 2023
@chriswk chriswk deleted the task/deterministicSerialization branch January 27, 2023 09:44
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

Successfully merging this pull request may close these issues.

2 participants