hyperledger / besu-native

Apache License 2.0
12 stars 35 forks source link

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

Closed thomas-quadratic closed 7 months ago

thomas-quadratic commented 9 months ago

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.