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
I would guess but haven't confirmed that one overflows the order and the other does not. Per the function name, when an input overflows the order the scalar is computed modulo the order.
Keep in mind the bytes you are providing are interpreted as little endian.
Hello,
I'm trying to construct
Scalar
values usingfrom_bytes_mod_order
and I'm having a weird issue.If I plug in this byte array:
I obtain a
Scalar
encoding:Whereas If I plug in this array:
It behaves as expected, and I obtain a
Scalar
encoding:This is a code snippet which reproduces this issue:
Do you think that I'm doing something wrong?
Thanks for taking a look! :-)
The text was updated successfully, but these errors were encountered: