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
Currently in the PR #1224 for obtaining canonical bit representation of the non-native element we first reduce the element, assert that it is in range and then call the non-native ToBits method. However, in this case we do essentially binary decomposition twice:
when asserting that non-native element is in range in AssertIsInRange method
when doing binary decomposition of the limbs in ToBits method
Secondly, it would be good if we have also an option to provide ToBits and ToBitsCanonical the number of bits we are interested in. This for example allows to avoid AssertIsInRange in case where we require only a few bits (as in native ToBits)
It would be better to merge the two operations for better efficiency.
Add option for requesting less bits
The text was updated successfully, but these errors were encountered:
Currently in the PR #1224 for obtaining canonical bit representation of the non-native element we first reduce the element, assert that it is in range and then call the non-native
ToBits
method. However, in this case we do essentially binary decomposition twice:AssertIsInRange
methodToBits
methodSecondly, it would be good if we have also an option to provide
ToBits
andToBitsCanonical
the number of bits we are interested in. This for example allows to avoidAssertIsInRange
in case where we require only a few bits (as in native ToBits)The text was updated successfully, but these errors were encountered: