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

Use little endian encoding of ByteStrings in Anoma #2793

Merged
merged 1 commit into from
May 31, 2024
Merged

Conversation

paulcadman
Copy link
Collaborator

Anoma decodes integer atoms as bytes assuming a little endian layout.

https://github.com/anoma/anoma/blob/ea25f88cea52226d77c8392ae16bbfc5a7ffccee/lib/noun.ex#L182

This commit adds functions byteStringToIntegerLE and integerToByteStringLE that makes it clear that little endian encoding is being used.

@paulcadman paulcadman added this to the 0.6.2 milestone May 31, 2024
@paulcadman paulcadman self-assigned this May 31, 2024
@paulcadman paulcadman requested a review from janmasrovira May 31, 2024 11:14
Anoma decodes integer atoms as bytes assuming a little endian layout.

This commit adds functions byteStringToIntegerLE and
integerToByteStringLE that makes it clear that little endian encoding is
being used.
@janmasrovira janmasrovira merged commit 88b4cb8 into main May 31, 2024
4 checks passed
@janmasrovira janmasrovira deleted the anoma-bs-le branch May 31, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants