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

Add uniformer #119

Merged
merged 11 commits into from
Jan 7, 2022
Merged

Add uniformer #119

merged 11 commits into from
Jan 7, 2022

Conversation

ghost
Copy link

@ghost ghost commented Jan 7, 2022

Adding a uniformer which can ensure that hashing of complex objects always produce the same result, by deterministic serialization.

Sune Gynthersen added 11 commits January 6, 2022 11:39
Only support so far:
* Strings
* Numbers
* Nested objects with strings and number properties
Required as properties of a map is not guaranteed to be in order, which
can lead to incorrect hashes being generated.
* Wrote more tests
* Fixed all linter issues
* Refactored for clarity
Simpler to just slice a known string rather than using Regex.
@av-mads av-mads merged commit 26b6d06 into main Jan 7, 2022
@av-mads av-mads deleted the add-uniformer branch January 7, 2022 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant