You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like a utility function to compare 2 hashes.
I've been using isEqual from lodash but discovered an edge case yesterday where it doesn't work: after round-tripping a dna hash to base64 and back, it will incorrectly consider 2 equivalent hashes not equal.
It seems like everyone has their own implementation of hash comparison in their own libs or apps. For example:
I would like a utility function to compare 2 hashes.
I've been using
isEqual
from lodash but discovered an edge case yesterday where it doesn't work: after round-tripping a dna hash to base64 and back, it will incorrectly consider 2 equivalent hashes not equal.It seems like everyone has their own implementation of hash comparison in their own libs or apps. For example:
We should make a canonical one and include it in the client lib. Maybe after some profiling to find the most efficient implementation.
The text was updated successfully, but these errors were encountered: