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
example: 0x0100 interpreted in little-endian bigint is 1, 0x01000000 interpreted in little-endian bigint is 1 (same would happen in big-endian with 0x0001 and 0x00000001).
This affects when adding & updating & getting leafs from the tree, and also when checking merkle-proofs.
One option could be that if the tree uses Poseidon as hashFunc, force the input keys to be of 32 bytes (32-byte little-endian representation of a bigint).
The text was updated successfully, but these errors were encountered:
example:
0x0100
interpreted in little-endian bigint is1
,0x01000000
interpreted in little-endian bigint is1
(same would happen in big-endian with0x0001
and0x00000001
).This affects when adding & updating & getting leafs from the tree, and also when checking merkle-proofs.
One option could be that if the tree uses Poseidon as hashFunc, force the input keys to be of 32 bytes (32-byte little-endian representation of a bigint).
The text was updated successfully, but these errors were encountered: