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

Communication between rust and Java should be in little-endian bytes. #2

Open
thomas-quadratic opened this issue Nov 14, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@thomas-quadratic
Copy link
Member

Description

Pedersen commit and hash use big-endian instead of little-endian.
However, that means that all bytes have to be reverted at every call in besu-verkle-trie.
For efficiency, we rather have to revert bytes in tests but not in the app.

Expected

Native side received LE-bytes and return LE-bytes in commit and hash JNI functions.

@thomas-quadratic thomas-quadratic added enhancement New feature or request good first issue Good for newcomers labels Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant