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 byte array comparison function #289

Open
matthme opened this issue Nov 13, 2024 · 1 comment
Open

Add byte array comparison function #289

matthme opened this issue Nov 13, 2024 · 1 comment

Comments

@matthme
Copy link
Contributor

matthme commented Nov 13, 2024

Comparing two Uint8Array compares the full js object and not just the bytes which means that even if two action hashe Uint8Array are the same hash, they may not be considered equal. It would be nice to have a function in the js-client allowing to compare byte arrays without having to base64 encode them first.

@jost-s jost-s added this to Holochain Nov 13, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Holochain Nov 13, 2024
@jost-s jost-s moved this from Backlog to Ready for refinement in Holochain Nov 13, 2024
@mattyg
Copy link
Member

mattyg commented Nov 13, 2024

One option would be to reexport isEqual from lodash: https://lodash.com/docs/4.17.15#isEqual

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

No branches or pull requests

2 participants